Spaces:
Runtime error
Runtime error
Update
Browse files- .pre-commit-config.yaml +7 -7
.pre-commit-config.yaml
CHANGED
|
@@ -10,36 +10,36 @@ repos:
|
|
| 10 |
- id: check-yaml
|
| 11 |
- id: end-of-file-fixer
|
| 12 |
- id: mixed-line-ending
|
| 13 |
-
args: [
|
| 14 |
- id: requirements-txt-fixer
|
| 15 |
- id: trailing-whitespace
|
| 16 |
- repo: https://github.com/myint/docformatter
|
| 17 |
rev: v1.7.5
|
| 18 |
hooks:
|
| 19 |
- id: docformatter
|
| 20 |
-
args: [
|
| 21 |
- repo: https://github.com/pycqa/isort
|
| 22 |
rev: 5.12.0
|
| 23 |
hooks:
|
| 24 |
- id: isort
|
| 25 |
-
args: ["--profile
|
| 26 |
- repo: https://github.com/pre-commit/mirrors-mypy
|
| 27 |
rev: v1.5.1
|
| 28 |
hooks:
|
| 29 |
- id: mypy
|
| 30 |
-
args: [
|
| 31 |
-
additional_dependencies: [
|
| 32 |
- repo: https://github.com/psf/black
|
| 33 |
rev: 23.7.0
|
| 34 |
hooks:
|
| 35 |
- id: black
|
| 36 |
language_version: python3.10
|
| 37 |
-
args: [
|
| 38 |
- repo: https://github.com/kynan/nbstripout
|
| 39 |
rev: 0.6.1
|
| 40 |
hooks:
|
| 41 |
- id: nbstripout
|
| 42 |
-
args: [
|
| 43 |
- repo: https://github.com/nbQA-dev/nbQA
|
| 44 |
rev: 1.7.0
|
| 45 |
hooks:
|
|
|
|
| 10 |
- id: check-yaml
|
| 11 |
- id: end-of-file-fixer
|
| 12 |
- id: mixed-line-ending
|
| 13 |
+
args: ["--fix=lf"]
|
| 14 |
- id: requirements-txt-fixer
|
| 15 |
- id: trailing-whitespace
|
| 16 |
- repo: https://github.com/myint/docformatter
|
| 17 |
rev: v1.7.5
|
| 18 |
hooks:
|
| 19 |
- id: docformatter
|
| 20 |
+
args: ["--in-place"]
|
| 21 |
- repo: https://github.com/pycqa/isort
|
| 22 |
rev: 5.12.0
|
| 23 |
hooks:
|
| 24 |
- id: isort
|
| 25 |
+
args: ["--profile", "black"]
|
| 26 |
- repo: https://github.com/pre-commit/mirrors-mypy
|
| 27 |
rev: v1.5.1
|
| 28 |
hooks:
|
| 29 |
- id: mypy
|
| 30 |
+
args: ["--ignore-missing-imports"]
|
| 31 |
+
additional_dependencies: ["types-python-slugify", "types-requests", "types-PyYAML"]
|
| 32 |
- repo: https://github.com/psf/black
|
| 33 |
rev: 23.7.0
|
| 34 |
hooks:
|
| 35 |
- id: black
|
| 36 |
language_version: python3.10
|
| 37 |
+
args: ["--line-length", "119"]
|
| 38 |
- repo: https://github.com/kynan/nbstripout
|
| 39 |
rev: 0.6.1
|
| 40 |
hooks:
|
| 41 |
- id: nbstripout
|
| 42 |
+
args: ["--extra-keys", "metadata.interpreter metadata.kernelspec cell.metadata.pycharm"]
|
| 43 |
- repo: https://github.com/nbQA-dev/nbQA
|
| 44 |
rev: 1.7.0
|
| 45 |
hooks:
|