Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.

Commit

Permalink
Merge pull request #204 from asottile/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
asottile authored Jul 28, 2024
2 parents f462ee0 + ab52bb7 commit 77915df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.1
rev: v1.11.0
hooks:
- id: mypy
exclude: ^testing/
Expand Down
3 changes: 2 additions & 1 deletion setuptools_golang.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ def rmtree(path: str) -> None:
def handle_remove_readonly(
func: Callable[..., Any],
path: str,
exc: tuple[type[OSError], OSError, TracebackType],
exc: tuple[type[BaseException], BaseException, TracebackType],
) -> None:
excvalue = exc[1]
if (
isinstance(excvalue, OSError) and
func in (os.rmdir, os.remove, os.unlink) and
excvalue.errno == errno.EACCES
):
Expand Down

0 comments on commit 77915df

Please sign in to comment.