Update pre-commit-config.yaml
- Switch to ruff format - Update lint tool versions
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
||||||
rev: v0.9.7
|
rev: v0.14.8
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff-check
|
||||||
exclude: ".githooks/"
|
exclude: ".githooks/"
|
||||||
|
- id: ruff-format
|
||||||
|
|
||||||
- repo: https://github.com/codespell-project/codespell
|
- repo: https://github.com/codespell-project/codespell
|
||||||
rev: v2.4.1
|
rev: v2.4.1
|
||||||
@@ -14,7 +15,7 @@ repos:
|
|||||||
- tomli
|
- tomli
|
||||||
|
|
||||||
- repo: https://github.com/RobertCraigie/pyright-python
|
- repo: https://github.com/RobertCraigie/pyright-python
|
||||||
rev: v1.1.394
|
rev: v1.1.406
|
||||||
hooks:
|
hooks:
|
||||||
- id: pyright
|
- id: pyright
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
@@ -24,17 +25,10 @@ repos:
|
|||||||
stages: [manual]
|
stages: [manual]
|
||||||
|
|
||||||
- repo: https://github.com/pycqa/isort
|
- repo: https://github.com/pycqa/isort
|
||||||
rev: 5.13.2
|
rev: 7.0.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: isort
|
- id: isort
|
||||||
|
|
||||||
- repo: https://github.com/psf/black
|
|
||||||
# The `refs/tags/<tag>:refs/tags/<tag>` is needed for black's required-version to work:
|
|
||||||
# https://github.com/psf/black/issues/2493#issuecomment-1081987650
|
|
||||||
rev: 'refs/tags/24.10.0:refs/tags/24.10.0'
|
|
||||||
hooks:
|
|
||||||
- id: black
|
|
||||||
|
|
||||||
- repo: https://github.com/fsfe/reuse-tool
|
- repo: https://github.com/fsfe/reuse-tool
|
||||||
rev: v5.0.2
|
rev: v5.0.2
|
||||||
hooks:
|
hooks:
|
||||||
|
|||||||
@@ -119,6 +119,7 @@ ignore = [
|
|||||||
"N817", # CamelCase imported as acronym
|
"N817", # CamelCase imported as acronym
|
||||||
"N818", # Exception name should be named with an Error suffix
|
"N818", # Exception name should be named with an Error suffix
|
||||||
"PGH003", # Use specific rule codes when ignoring type issues
|
"PGH003", # Use specific rule codes when ignoring type issues
|
||||||
|
"PLC0415",# `import` should be at the top-level of a file
|
||||||
"PLC1901",# Expression can be simplified to x as an empty string is falsey
|
"PLC1901",# Expression can be simplified to x as an empty string is falsey
|
||||||
"PLR0911",# Too many return statements
|
"PLR0911",# Too many return statements
|
||||||
"PLR0912",# Too many branches
|
"PLR0912",# Too many branches
|
||||||
|
|||||||
Reference in New Issue
Block a user