Update pre-commit file
This commit is contained in:
+20
-14
@@ -1,17 +1,11 @@
|
|||||||
repos:
|
repos:
|
||||||
# - repo: https://github.com/pre-commit/pre-commit-hooks
|
|
||||||
# rev: v6.0.0
|
|
||||||
# hooks:
|
|
||||||
# - id: check-yaml
|
|
||||||
# - id: end-of-file-fixer
|
|
||||||
# - id: trailing-whitespace
|
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: 25.11.0
|
rev: 25.12.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
args: ['--line-length', '100']
|
args: ['--line-length', '100']
|
||||||
- repo: https://github.com/pycqa/isort
|
- repo: https://github.com/pycqa/isort
|
||||||
rev: 5.11.2
|
rev: 7.0.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: isort
|
- id: isort
|
||||||
args: ['--profile', 'black']
|
args: ['--profile', 'black']
|
||||||
@@ -21,14 +15,26 @@ repos:
|
|||||||
- id: flake8
|
- id: flake8
|
||||||
args: ['--extend-ignore','E203,E501,W503']
|
args: ['--extend-ignore','E203,E501,W503']
|
||||||
- repo: https://github.com/pylint-dev/pylint
|
- repo: https://github.com/pylint-dev/pylint
|
||||||
rev: v4.0.2
|
rev: v4.0.4
|
||||||
hooks:
|
hooks:
|
||||||
- id: pylint
|
- id: pylint
|
||||||
args: ['--disable', 'W0511,W0718,R0801,R0903,R0914']
|
args: ['--disable', 'W0511,W0718,R0801,R0903,R0914']
|
||||||
language: system
|
language: system
|
||||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
- repo: local
|
||||||
rev: v1.18.2
|
|
||||||
hooks:
|
hooks:
|
||||||
- id: mypy
|
- id: mypy
|
||||||
args: ["--disallow-any-generics", "--disallow-untyped-def", "--follow-imports", "skip", "--ignore-missing-imports", "--disable-error-code", "unused-awaitable"]
|
name: mypy
|
||||||
language: system
|
entry: mypy
|
||||||
|
types: [python]
|
||||||
|
language: system
|
||||||
|
pass_filenames: true
|
||||||
|
args:
|
||||||
|
[
|
||||||
|
"--disallow-any-generics",
|
||||||
|
"--disallow-untyped-def",
|
||||||
|
"--follow-imports",
|
||||||
|
"skip",
|
||||||
|
"--ignore-missing-imports",
|
||||||
|
"--disable-error-code",
|
||||||
|
"unused-awaitable",
|
||||||
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user