Skip to content

Commit ac7ce0f

Browse files
committed
version bumps. add more checks
1 parent f3c30ef commit ac7ce0f

File tree

1 file changed

+40
-8
lines changed

1 file changed

+40
-8
lines changed

.pre-commit-config.yaml

+40-8
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ default_language_version:
33
python: python3.8
44
repos:
55
- repo: https://github.com/ambv/black
6-
rev: 22.12.0
6+
rev: 23.3.0
77
hooks:
88
- id: black
99
- repo: https://github.com/pre-commit/pre-commit-hooks
10-
rev: v4.0.1
10+
rev: v4.4.0
1111
hooks:
1212
# See https://pre-commit.com/hooks.html for more hooks
1313
- id: check-ast
@@ -16,10 +16,42 @@ repos:
1616
- id: check-merge-conflict
1717
- id: debug-statements
1818
- id: end-of-file-fixer
19-
#- id: name-tests-test
20-
# args: [ "--django" ]
19+
- id: check-added-large-files
20+
- id: check-shebang-scripts-are-executable
21+
- id: check-symlinks
22+
- id: check-yaml
23+
- id: debug-statements
24+
exclude: tests/
25+
- id: destroyed-symlinks
26+
- id: end-of-file-fixer
27+
exclude: tests/test_changes/
28+
files: \.(py|sh|rst|yml|yaml)$
29+
- id: mixed-line-ending
2130
- id: trailing-whitespace
22-
- repo: https://gitlab.com/pycqa/flake8
23-
rev: 3.9.2
24-
hooks:
25-
- id: flake8
31+
files: \.(py|sh|rst|yml|yaml)$
32+
- repo: https://github.com/PyCQA/flake8
33+
rev: 6.0.0
34+
hooks:
35+
- id: flake8
36+
additional_dependencies: [
37+
'flake8-blind-except',
38+
'flake8-docstrings',
39+
'flake8-bugbear',
40+
'flake8-comprehensions',
41+
'flake8-docstrings',
42+
'flake8-implicit-str-concat',
43+
'pydocstyle>=5.0.0',
44+
]
45+
exclude: ^tests/test_cases/no_closing_bracket\.py$
46+
- repo: https://github.com/rstcheck/rstcheck
47+
rev: v6.1.1
48+
hooks:
49+
- id: rstcheck
50+
args: [
51+
--report-level=warning,
52+
]
53+
- repo: https://github.com/codespell-project/codespell
54+
rev: v2.2.2
55+
hooks:
56+
- id: codespell
57+
files: \.(py|sh|rst|yml|yaml)$

0 commit comments

Comments
 (0)