Skip to content

Commit 406f808

Browse files
[pre-commit.ci] pre-commit autoupdate (#3283)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 5c28d9c commit 406f808

File tree

2 files changed

+23
-24
lines changed

2 files changed

+23
-24
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ repos:
2020
- id: tox-ini-fmt
2121
args: ["-p", "fix"]
2222
- repo: https://github.com/tox-dev/pyproject-fmt
23-
rev: "2.0.4"
23+
rev: "2.1.1"
2424
hooks:
2525
- id: pyproject-fmt
2626
- repo: https://github.com/astral-sh/ruff-pre-commit

pyproject.toml

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -111,46 +111,45 @@ build.targets.sdist.include = [
111111
version.source = "vcs"
112112

113113
[tool.ruff]
114-
line-length = 120
115114
target-version = "py38"
115+
line-length = 120
116+
format.preview = true
117+
format.docstring-code-line-length = 100
118+
format.docstring-code-format = true
119+
lint.select = [
120+
"ALL",
121+
]
122+
lint.per-file-ignores."tests/**/*.py" = [
123+
"D", # don't care about documentation in tests
124+
"FBT", # don"t care about booleans as positional arguments in tests
125+
"INP001", # no implicit namespace
126+
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable
127+
"S101", # asserts allowed in tests...
128+
"S603", # `subprocess` call: check for execution of untrusted input
129+
]
116130
lint.isort = { known-first-party = [
117131
"tox",
118132
"tests",
119133
], required-imports = [
120134
"from __future__ import annotations",
121135
] }
122-
lint.select = [
123-
"ALL",
124-
]
125136
lint.ignore = [
126-
"CPY", # No copyright header
127-
"INP001", # no implicit namespaces here
128-
"D", # ignore documentation for now
129-
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed in `arg`"
130137
"ANN101", # Missing type annotation for `self` in method
131138
"ANN102", # Missing type annotation for `cls` in classmethod"
139+
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed in `arg`"
140+
"COM812", # conflicts with formatter
141+
"CPY", # No copyright header
142+
"D", # ignore documentation for now
132143
"D203", # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
133144
"D212", # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible
134-
"S104", # Possible binding to all interfaces
135-
"COM812", # conflicts with formatter
145+
"INP001", # no implicit namespaces here
136146
"ISC001", # conflicts with formatter
137-
"S404", # Using subprocess is alright.
138147
"PLR0914", ## Too many local variables
139148
"PLR0917", ## Too many positional arguments
149+
"S104", # Possible binding to all interfaces
150+
"S404", # Using subprocess is alright.
140151
]
141-
format.preview = true
142152
lint.preview = true
143-
format.docstring-code-format = true
144-
format.docstring-code-line-length = 100
145-
[tool.ruff.lint.per-file-ignores]
146-
"tests/**/*.py" = [
147-
"S101", # asserts allowed in tests...
148-
"FBT", # don"t care about booleans as positional arguments in tests
149-
"INP001", # no implicit namespace
150-
"D", # don't care about documentation in tests
151-
"S603", # `subprocess` call: check for execution of untrusted input
152-
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable
153-
]
154153

155154
[tool.codespell]
156155
builtin = "clear,usage,en-GB_to_en-US"

0 commit comments

Comments
 (0)