... | ... |
@@ -1,9 +1,9 @@ |
1 | 1 |
repos: |
2 | 2 |
- repo: https://github.com/ambv/black |
3 |
- rev: 19.3b0 |
|
3 |
+ rev: 23.10.0 |
|
4 | 4 |
hooks: |
5 | 5 |
- id: black |
6 |
- language_version: python3.8 |
|
6 |
+ language_version: python3.11 |
|
7 | 7 |
- repo: https://github.com/pre-commit/pre-commit-hooks |
8 | 8 |
rev: v2.1.0 |
9 | 9 |
hooks: |
... | ... |
@@ -11,7 +11,12 @@ repos: |
11 | 11 |
exclude: '.bumpversion.cfg' |
12 | 12 |
- id: trailing-whitespace |
13 | 13 |
exclude: '.bumpversion.cfg' |
14 |
-- repo: https://gitlab.com/pycqa/flake8 |
|
15 |
- rev: 3.7.9 |
|
14 |
+- repo: https://github.com/astral-sh/ruff-pre-commit |
|
15 |
+ rev: "v0.1.1" |
|
16 | 16 |
hooks: |
17 |
- - id: flake8 |
|
17 |
+ - id: ruff |
|
18 |
+ args: ["--fix"] |
|
19 |
+- repo: https://github.com/pre-commit/mirrors-mypy |
|
20 |
+ rev: "v1.6.1" |
|
21 |
+ hooks: |
|
22 |
+ - id: mypy |
... | ... |
@@ -11,10 +11,7 @@ repos: |
11 | 11 |
exclude: '.bumpversion.cfg' |
12 | 12 |
- id: trailing-whitespace |
13 | 13 |
exclude: '.bumpversion.cfg' |
14 |
-# Disable this until 3.8.0 is released (as explained in |
|
15 |
-# https://gitlab.com/pycqa/flake8/issues/450) |
|
16 |
-#- repo: https://gitlab.com/pycqa/flake8 |
|
17 |
-# rev: 3.8.0 |
|
18 |
-# hooks: |
|
19 |
-# - id: flake8 |
|
20 |
-# args: ['--config=tox.ini'] |
|
14 |
+- repo: https://gitlab.com/pycqa/flake8 |
|
15 |
+ rev: 3.7.9 |
|
16 |
+ hooks: |
|
17 |
+ - id: flake8 |
Also disable end-of-file pre-commit checks, as bumpversion adds a
newline, see https://github.com/c4urself/bump2version/issues/58.
... | ... |
@@ -8,7 +8,9 @@ repos: |
8 | 8 |
rev: v2.1.0 |
9 | 9 |
hooks: |
10 | 10 |
- id: end-of-file-fixer |
11 |
+ exclude: '.bumpversion.cfg' |
|
11 | 12 |
- id: trailing-whitespace |
13 |
+ exclude: '.bumpversion.cfg' |
|
12 | 14 |
# Disable this until 3.8.0 is released (as explained in |
13 | 15 |
# https://gitlab.com/pycqa/flake8/issues/450) |
14 | 16 |
#- repo: https://gitlab.com/pycqa/flake8 |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,18 @@ |
1 |
+repos: |
|
2 |
+- repo: https://github.com/ambv/black |
|
3 |
+ rev: 19.3b0 |
|
4 |
+ hooks: |
|
5 |
+ - id: black |
|
6 |
+ language_version: python3.7 |
|
7 |
+- repo: https://github.com/pre-commit/pre-commit-hooks |
|
8 |
+ rev: v2.1.0 |
|
9 |
+ hooks: |
|
10 |
+ - id: end-of-file-fixer |
|
11 |
+ - id: trailing-whitespace |
|
12 |
+# Disable this until 3.8.0 is released (as explained in |
|
13 |
+# https://gitlab.com/pycqa/flake8/issues/450) |
|
14 |
+#- repo: https://gitlab.com/pycqa/flake8 |
|
15 |
+# rev: 3.8.0 |
|
16 |
+# hooks: |
|
17 |
+# - id: flake8 |
|
18 |
+# args: ['--config=tox.ini'] |