From 588f8f5f817fe3276254d24e1cd6272d77e004af Mon Sep 17 00:00:00 2001 From: Bruce Merry Date: Tue, 15 Nov 2022 09:12:43 +0200 Subject: [PATCH 1/2] Update pre-commit hooks to latest versions Also get flake8 from its newer home on Github. --- .pre-commit-config.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0259d5f..c0e5b9b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ default_language_version: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.2.0 + rev: v4.3.0 hooks: - id: check-merge-conflict - id: check-shebang-scripts-are-executable @@ -17,15 +17,15 @@ repos: hooks: - id: isort - repo: https://github.com/psf/black - rev: 22.8.0 + rev: 22.10.0 hooks: - id: black - - repo: https://gitlab.com/pycqa/flake8 - rev: 4.0.1 + - repo: https://github.com/PyCQA/flake8 + rev: 5.0.4 hooks: - id: flake8 - repo: https://github.com/pre-commit/mirrors-mypy - rev: 'v0.942' + rev: 'v0.990' hooks: - id: mypy # Passing filenames to mypy can do odd things. See From 3f17333d5204062e9c4cd79485836fef9c4ea3b7 Mon Sep 17 00:00:00 2001 From: Bruce Merry Date: Tue, 15 Nov 2022 09:16:34 +0200 Subject: [PATCH 2/2] Revert update of mypy in pre-commit The updated version turns on no-implicit-optional, which breaks the checks. --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c0e5b9b..38f46a9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,7 +25,7 @@ repos: hooks: - id: flake8 - repo: https://github.com/pre-commit/mirrors-mypy - rev: 'v0.990' + rev: 'v0.942' hooks: - id: mypy # Passing filenames to mypy can do odd things. See