Skip to content

Commit b4cbd35

Browse files
[pre-commit.ci] pre-commit autoupdate (#54)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 98b331e commit b4cbd35

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ repos:
1515
- id: codespell
1616
additional_dependencies: ["tomli>=2.4"]
1717
- repo: https://github.com/tox-dev/pyproject-fmt
18-
rev: "v2.18.1"
18+
rev: "v2.20.0"
1919
hooks:
2020
- id: pyproject-fmt
2121
- repo: https://github.com/astral-sh/ruff-pre-commit
22-
rev: "v0.15.6"
22+
rev: "v0.15.7"
2323
hooks:
2424
- id: ruff-format
2525
- id: ruff

pyproject.toml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,23 @@ count = true
129129
[tool.pyproject-fmt]
130130
max_supported_python = "3.14"
131131

132+
[tool.ty]
133+
src.exclude = [ "tests/windows/winreg_mock_values.py" ]
134+
135+
[[tool.ty.overrides]]
136+
include = [ "src/python_discovery/_py_info.py", "src/python_discovery/_py_spec.py" ]
137+
rules.unused-ignore-comment = "ignore"
138+
rules.invalid-argument-type = "ignore"
139+
rules.invalid-return-type = "ignore"
140+
rules.no-matching-overload = "ignore"
141+
142+
[[tool.ty.overrides]]
143+
include = [ "tests/**/*.py" ]
144+
rules.unused-ignore-comment = "ignore"
145+
rules.invalid-argument-type = "ignore"
146+
rules.no-matching-overload = "ignore"
147+
rules.unresolved-attribute = "ignore"
148+
132149
[tool.pytest]
133150
ini_options.markers = [ "graalpy" ]
134151

@@ -162,20 +179,3 @@ report.partial_branches = [
162179
report.show_missing = true
163180
html.show_contexts = true
164181
html.skip_covered = false
165-
166-
[tool.ty]
167-
src.exclude = [ "tests/windows/winreg_mock_values.py" ]
168-
169-
[[tool.ty.overrides]]
170-
include = [ "src/python_discovery/_py_info.py", "src/python_discovery/_py_spec.py" ]
171-
rules.unused-ignore-comment = "ignore"
172-
rules.invalid-argument-type = "ignore"
173-
rules.invalid-return-type = "ignore"
174-
rules.no-matching-overload = "ignore"
175-
176-
[[tool.ty.overrides]]
177-
include = [ "tests/**/*.py" ]
178-
rules.unused-ignore-comment = "ignore"
179-
rules.invalid-argument-type = "ignore"
180-
rules.no-matching-overload = "ignore"
181-
rules.unresolved-attribute = "ignore"

0 commit comments

Comments
 (0)