Update .pre-commit-config.yaml
Browse files- .pre-commit-config.yaml +9 -36
.pre-commit-config.yaml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
repos:
|
| 2 |
- repo: https://github.com/pre-commit/pre-commit-hooks
|
| 3 |
-
rev:
|
| 4 |
hooks:
|
| 5 |
- id: check-executables-have-shebangs
|
| 6 |
- id: check-json
|
|
@@ -13,48 +13,21 @@ repos:
|
|
| 13 |
args: ["--fix=lf"]
|
| 14 |
- id: requirements-txt-fixer
|
| 15 |
- id: trailing-whitespace
|
| 16 |
-
- repo: https://github.com/
|
| 17 |
-
rev:
|
| 18 |
hooks:
|
| 19 |
-
- id:
|
| 20 |
-
args: ["--
|
| 21 |
-
|
| 22 |
-
rev: 5.13.2
|
| 23 |
-
hooks:
|
| 24 |
-
- id: isort
|
| 25 |
-
args: ["--profile", "black"]
|
| 26 |
- repo: https://github.com/pre-commit/mirrors-mypy
|
| 27 |
-
rev: v1.
|
| 28 |
hooks:
|
| 29 |
- id: mypy
|
| 30 |
args: ["--ignore-missing-imports"]
|
| 31 |
additional_dependencies:
|
| 32 |
[
|
| 33 |
"types-python-slugify",
|
| 34 |
-
"types-requests",
|
| 35 |
-
"types-PyYAML",
|
| 36 |
"types-pytz",
|
|
|
|
|
|
|
| 37 |
]
|
| 38 |
-
- repo: https://github.com/psf/black
|
| 39 |
-
rev: 24.2.0
|
| 40 |
-
hooks:
|
| 41 |
-
- id: black
|
| 42 |
-
language_version: python3.10
|
| 43 |
-
args: ["--line-length", "119"]
|
| 44 |
-
- repo: https://github.com/kynan/nbstripout
|
| 45 |
-
rev: 0.7.1
|
| 46 |
-
hooks:
|
| 47 |
-
- id: nbstripout
|
| 48 |
-
args:
|
| 49 |
-
[
|
| 50 |
-
"--extra-keys",
|
| 51 |
-
"metadata.interpreter metadata.kernelspec cell.metadata.pycharm",
|
| 52 |
-
]
|
| 53 |
-
- repo: https://github.com/nbQA-dev/nbQA
|
| 54 |
-
rev: 1.7.1
|
| 55 |
-
hooks:
|
| 56 |
-
- id: nbqa-black
|
| 57 |
-
- id: nbqa-pyupgrade
|
| 58 |
-
args: ["--py37-plus"]
|
| 59 |
-
- id: nbqa-isort
|
| 60 |
-
args: ["--float-to-top"]
|
|
|
|
| 1 |
repos:
|
| 2 |
- repo: https://github.com/pre-commit/pre-commit-hooks
|
| 3 |
+
rev: v6.0.0
|
| 4 |
hooks:
|
| 5 |
- id: check-executables-have-shebangs
|
| 6 |
- id: check-json
|
|
|
|
| 13 |
args: ["--fix=lf"]
|
| 14 |
- id: requirements-txt-fixer
|
| 15 |
- id: trailing-whitespace
|
| 16 |
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
| 17 |
+
rev: v0.15.11
|
| 18 |
hooks:
|
| 19 |
+
- id: ruff-check
|
| 20 |
+
args: ["--fix"]
|
| 21 |
+
- id: ruff-format
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
- repo: https://github.com/pre-commit/mirrors-mypy
|
| 23 |
+
rev: v1.20.2
|
| 24 |
hooks:
|
| 25 |
- id: mypy
|
| 26 |
args: ["--ignore-missing-imports"]
|
| 27 |
additional_dependencies:
|
| 28 |
[
|
| 29 |
"types-python-slugify",
|
|
|
|
|
|
|
| 30 |
"types-pytz",
|
| 31 |
+
"types-PyYAML",
|
| 32 |
+
"types-requests",
|
| 33 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|