francisco souza bb0d9573a9 util: also run chmod on EPERM
Writing a test for this one is tricky, because I was seeing the issue
only when the directory being removed is a docker volume, so instead of
getting EACCES we get EPERM.

This is easy to reproduce though. The existing test fails when the
directory being used for the files is a docker volume:

```
% docker run \
	-v $(mktemp -d):/tmp \
	-v ${PWD}:/src \
	-w /src \
	python:3 \
	bash -c 'pip install -e . && pip install -r requirements-dev.txt && python -m pytest tests/util_test.py'
```
2020-12-05 22:26:38 -05:00
2020-12-05 22:26:38 -05:00
2020-11-26 09:42:27 -08:00
2020-09-27 15:04:35 -07:00
2020-11-25 18:39:54 -08:00
2020-11-27 17:00:17 -08:00
MIT
2014-06-05 08:57:40 -07:00
2020-10-26 16:11:27 -07:00
2020-11-25 18:39:54 -08:00
2020-09-27 15:04:35 -07:00

Build Status Azure DevOps coverage pre-commit.ci status

pre-commit

A framework for managing and maintaining multi-language pre-commit hooks.

For more information see: https://pre-commit.com/

Description
A framework for managing and maintaining multi-language pre-commit hooks.
Readme MIT 10 MiB
Languages
Python 97.3%
R 2%
Shell 0.5%