Skip to content

Commit aec0dd8

Browse files
[pre-commit.ci] pre-commit suggestions (kornia#2919)
* [pre-commit.ci] pre-commit suggestions updates: - [github.com/tox-dev/pyproject-fmt: 2.1.1 → 2.1.3](tox-dev/pyproject-fmt@2.1.1...2.1.3) - [github.com/astral-sh/ruff-pre-commit: v0.4.4 → v0.4.9](astral-sh/ruff-pre-commit@v0.4.4...v0.4.9) - [github.com/codespell-project/codespell: v2.2.6 → v2.3.0](codespell-project/codespell@v2.2.6...v2.3.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent e5155b9 commit aec0dd8

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.pre-commit-config.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@ repos:
1515
exclude: ^$|.devcontainer
1616

1717
- repo: https://github.com/tox-dev/pyproject-fmt
18-
rev: "2.1.1"
18+
rev: "2.1.3"
1919
hooks:
2020
- id: pyproject-fmt
2121

2222
- repo: https://github.com/astral-sh/ruff-pre-commit
23-
rev: v0.4.4
23+
rev: v0.4.9
2424
hooks:
2525
- id: ruff
2626
args: [--fix, --exit-non-zero-on-fix]
2727
- id: ruff-format
2828

2929
- repo: https://github.com/codespell-project/codespell
30-
rev: v2.2.6
30+
rev: v2.3.0
3131
hooks:
3232
- id: codespell
3333
args:

pyproject.toml

+6-5
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,12 @@ lint.select = [
159159
# "TD", # flake8-todos
160160
# "TRY", # tryceratops
161161
]
162+
lint.ignore = [
163+
"PLR0915", # Allow condition check in list comprehension
164+
"PLW2901", # Allow overwritten values on loops
165+
"UP007", # Prefer Optional[], Union[] over | due to torch jit scripting
166+
]
167+
162168
lint.per-file-ignores."*/__init__.py" = [
163169
"F401",
164170
"F403",
@@ -217,11 +223,6 @@ lint.pylint.max-args = 30 # Recommended: 5
217223
lint.pylint.max-branches = 21 # Recommended: 12
218224
lint.pylint.max-returns = 13 # Recommended: 6
219225
lint.pylint.max-statements = 64 # Recommended: 50
220-
lint.ignore = [
221-
"PLR0915", # Allow condition check in list comprehension
222-
"PLW2901", # Allow overwritten values on loops
223-
"UP007", # Prefer Optional[], Union[] over | due to torch jit scripting
224-
]
225226

226227
[tool.pytest.ini_options]
227228
addopts = "--color=yes"

0 commit comments

Comments
 (0)