[pre-commit.ci] pre-commit autoupdate (#371)
<!--pre-commit.ci start--> updates: - [github.com/codespell-project/codespell: v2.2.6 → v2.3.0](https://github.com/codespell-project/codespell/compare/v2.2.6...v2.3.0) - [github.com/tox-dev/pyproject-fmt: 2.1.1 → 2.1.3](https://github.com/tox-dev/pyproject-fmt/compare/2.1.1...2.1.3) - [github.com/astral-sh/ruff-pre-commit: v0.4.4 → v0.4.5](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.4...v0.4.5) <!--pre-commit.ci end--> --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
b8313c87c6
commit
44c13612e1
|
@ -5,7 +5,7 @@ repos:
|
|||
- id: end-of-file-fixer
|
||||
- id: trailing-whitespace
|
||||
- repo: https://github.com/codespell-project/codespell
|
||||
rev: v2.2.6
|
||||
rev: v2.3.0
|
||||
hooks:
|
||||
- id: codespell
|
||||
args: ["--write-changes"]
|
||||
|
@ -15,12 +15,12 @@ repos:
|
|||
- id: tox-ini-fmt
|
||||
args: ["-p", "fix"]
|
||||
- repo: https://github.com/tox-dev/pyproject-fmt
|
||||
rev: "2.1.1"
|
||||
rev: "2.1.3"
|
||||
hooks:
|
||||
- id: pyproject-fmt
|
||||
additional_dependencies: ["tox>=4.12.1"]
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
rev: "v0.4.4"
|
||||
rev: "v0.4.5"
|
||||
hooks:
|
||||
- id: ruff-format
|
||||
- id: ruff
|
||||
|
|
|
@ -75,20 +75,6 @@ format.docstring-code-format = true
|
|||
lint.select = [
|
||||
"ALL",
|
||||
]
|
||||
lint.per-file-ignores."tests/**/*.py" = [
|
||||
"D", # don"t care about documentation in tests
|
||||
"FBT", # don"t care about booleans as positional arguments in tests
|
||||
"PLC2701", # Private import in tests
|
||||
"PLR0913", # any number of arguments in tests
|
||||
"PLR0917", # any number of arguments in tests
|
||||
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable
|
||||
"S603", # `subprocess` call: check for execution of untrusted input
|
||||
]
|
||||
lint.isort = { known-first-party = [
|
||||
"pipdeptree",
|
||||
], required-imports = [
|
||||
"from __future__ import annotations",
|
||||
] }
|
||||
lint.ignore = [
|
||||
"ANN101", # No type annotation for self
|
||||
"ANN102", # Missing type annotation for `cls` in classmethod
|
||||
|
@ -103,6 +89,20 @@ lint.ignore = [
|
|||
"S101", # asserts allowed
|
||||
"S104", # Possible binding to all interface
|
||||
]
|
||||
lint.per-file-ignores."tests/**/*.py" = [
|
||||
"D", # don"t care about documentation in tests
|
||||
"FBT", # don"t care about booleans as positional arguments in tests
|
||||
"PLC2701", # Private import in tests
|
||||
"PLR0913", # any number of arguments in tests
|
||||
"PLR0917", # any number of arguments in tests
|
||||
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable
|
||||
"S603", # `subprocess` call: check for execution of untrusted input
|
||||
]
|
||||
lint.isort = { known-first-party = [
|
||||
"pipdeptree",
|
||||
], required-imports = [
|
||||
"from __future__ import annotations",
|
||||
] }
|
||||
lint.preview = true
|
||||
|
||||
[tool.codespell]
|
||||
|
|
Loading…
Reference in New Issue