Skip to content

Commit e59e215

Browse files
committed
Update pre-commit hooks to fix flake8 on Python 3.12+
Old flake8 6.0.0 pyflakes referenced ast.Str (removed in 3.12), crashing the pre-commit CI. Bump hooks: pre-commit-hooks v6.0.0, black 26.5.1, isort 8.0.1, flake8 7.3.0.
1 parent b6515aa commit e59e215

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.4.0
3+
rev: v6.0.0
44
hooks:
55
- id: check-added-large-files
66
- id: check-ast
@@ -16,17 +16,17 @@ repos:
1616
- id: mixed-line-ending
1717
- id: requirements-txt-fixer
1818
- repo: https://github.com/psf/black
19-
rev: 23.3.0
19+
rev: 26.5.1
2020
hooks:
2121
- id: black
2222
args: [ --line-length=119 ]
2323
- repo: https://github.com/pycqa/isort
24-
rev: 5.12.0
24+
rev: 8.0.1
2525
hooks:
2626
- id: isort
2727
args: [ "--profile", "black", "--filter-files" ]
2828
- repo: https://github.com/PyCQA/flake8
29-
rev: 6.0.0
29+
rev: 7.3.0
3030
hooks:
3131
- id: flake8
3232
additional_dependencies:

0 commit comments

Comments
 (0)