Skip to content

Commit c808c2d

Browse files
[pre-commit.ci] pre-commit autoupdate (#4054)
Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>
1 parent 3aa0b69 commit c808c2d

2 files changed

Lines changed: 17 additions & 13 deletions

File tree

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ repos:
1515
- id: codespell
1616
additional_dependencies: ["tomli>=2.4"]
1717
- repo: https://github.com/tox-dev/pyproject-fmt
18-
rev: "v2.28.1"
18+
rev: "v2.29.0"
1919
hooks:
2020
- id: pyproject-fmt
2121
- repo: https://github.com/abravalheri/validate-pyproject
2222
rev: "0.26"
2323
hooks:
2424
- id: validate-pyproject
2525
- repo: https://github.com/astral-sh/ruff-pre-commit
26-
rev: "v0.16.4"
26+
rev: "v0.16.5"
2727
hooks:
2828
- id: ruff-check
2929
args: ["--fix", "--unsafe-fixes", "--exit-non-zero-on-fix"]
@@ -34,7 +34,7 @@ repos:
3434
- id: blacken-docs
3535
additional_dependencies: [black==26.1]
3636
- repo: https://github.com/LilSpazJoekp/docstrfmt
37-
rev: v2.2.0
37+
rev: v2.2.1
3838
hooks:
3939
- id: docstrfmt
4040
args: ["-l", "120"]
@@ -66,7 +66,7 @@ repos:
6666
exclude: ^docs/changelog/(\d+\.(breaking|deprecation|feature|bugfix|doc|packaging|contrib).rst|template.jinja2)
6767
files: ^docs/changelog/
6868
- repo: https://github.com/zizmorcore/zizmor-pre-commit
69-
rev: v1.29.0
69+
rev: v1.30.0
7070
hooks:
7171
- id: zizmor
7272
- repo: meta

pyproject.toml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -197,14 +197,18 @@ lint.ignore = [
197197
"S404", # Using subprocess is alright.
198198
"S603", # Using subprocess is alright.
199199
]
200+
lint.per-file-ignores."src/tox/pytest.py" = [
201+
"pytest-fixture-autouse", # the plugin's shared setup fixtures are meant to apply to every test
202+
]
200203
lint.per-file-ignores."tests/**/*.py" = [
201-
"D", # don't care about documentation in tests
202-
"FBT", # don't care about booleans as positional arguments in tests
203-
"INP001", # no implicit namespace
204-
"PLR0913", # too many arguments to function definition
205-
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable
206-
"S101", # asserts allowed in tests
207-
"S603", # `subprocess` call: check for execution of untrusted input
204+
"D", # don't care about documentation in tests
205+
"FBT", # don't care about booleans as positional arguments in tests
206+
"INP001", # no implicit namespace
207+
"PLR0913", # too many arguments to function definition
208+
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable
209+
"pytest-fixture-autouse", # shared setup fixtures are meant to apply to every test
210+
"S101", # asserts allowed in tests
211+
"S603", # `subprocess` call: check for execution of untrusted input
208212
]
209213
lint.isort = { known-first-party = [
210214
"tox",
@@ -235,8 +239,8 @@ strict = true
235239
overrides = [ { module = [ "re_assert" ], ignore_missing_imports = true } ]
236240

237241
[tool.pyrefly]
238-
project-includes = [ "src/tox", "tests/type_check" ]
239242
python-platform = "linux" # ty --python-platform all covers the other platforms; keeps pyrefly output identical on every runner
243+
project-includes = [ "src/tox", "tests/type_check" ]
240244
search-path = [ "src", "typestubs" ]
241245

242246
[tool.ty]
@@ -255,7 +259,7 @@ ini_options.markers = [
255259
]
256260
ini_options.filterwarnings = [
257261
"error",
258-
"ignore:os.path.commonprefix\\(\\) is deprecated:DeprecationWarning", # https://github.com/pygments/pygments/issues/3039 https://github.com/pypa/pyproject-hooks/issues/223
262+
"ignore:os.path.commonprefix\\(\\) is deprecated:DeprecationWarning", # https://github.com/pygments/pygments/issues/3039 https://github.com/pypa/pyproject-hooks/issues/223
259263
"ignore:subprocess .* is still running:ResourceWarning",
260264
"ignore:unclosed database in <sqlite3.Connection object at:ResourceWarning",
261265
"ignore:unclosed file <_io.TextIOWrapper:ResourceWarning",

0 commit comments

Comments
 (0)