Skip to content

Commit 09b84a7

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 50bbec0 commit 09b84a7

File tree

4 files changed

+17
-18
lines changed

4 files changed

+17
-18
lines changed

pyproject.toml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -119,20 +119,6 @@ format.docstring-code-format = true
119119
lint.select = [
120120
"ALL",
121121
]
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-
]
130-
lint.isort = { known-first-party = [
131-
"tox",
132-
"tests",
133-
], required-imports = [
134-
"from __future__ import annotations",
135-
] }
136122
lint.ignore = [
137123
"ANN101", # Missing type annotation for `self` in method
138124
"ANN102", # Missing type annotation for `cls` in classmethod"
@@ -149,6 +135,20 @@ lint.ignore = [
149135
"S104", # Possible binding to all interfaces
150136
"S404", # Using subprocess is alright.
151137
]
138+
lint.per-file-ignores."tests/**/*.py" = [
139+
"D", # don't care about documentation in tests
140+
"FBT", # don"t care about booleans as positional arguments in tests
141+
"INP001", # no implicit namespace
142+
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable
143+
"S101", # asserts allowed in tests...
144+
"S603", # `subprocess` call: check for execution of untrusted input
145+
]
146+
lint.isort = { known-first-party = [
147+
"tox",
148+
"tests",
149+
], required-imports = [
150+
"from __future__ import annotations",
151+
] }
152152
lint.preview = true
153153

154154
[tool.codespell]

src/tox/config/loader/ini/replace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def _replace_ref(env: str | None) -> Pattern[str]:
233233
)
234234

235235

236-
def replace_reference( # noqa: PLR0912, C901
236+
def replace_reference( # noqa: C901
237237
conf: Config,
238238
loader: IniLoader,
239239
value: str,

src/tox/execute/local_sub_process/read_via_thread_windows.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22

33
from __future__ import annotations # pragma: win32 cover
44

5+
import _overlapped # type: ignore[import] # pragma: win32 cover # noqa: PLC2701
56
import logging # pragma: win32 cover
67
from asyncio.windows_utils import BUFSIZE # type: ignore[attr-defined] # pragma: win32 cover
78
from time import sleep # pragma: win32 cover
89
from typing import Callable # pragma: win32 cover
910

10-
import _overlapped # type: ignore[import] # pragma: win32 cover # noqa: PLC2701
11-
1211
from .read_via_thread import ReadViaThread # pragma: win32 cover
1312

1413
# mypy: warn-unused-ignores=false

src/tox/tox_env/python/pip/req/file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333

3434
class ParsedRequirement:
35-
def __init__(self, req: str, options: dict[str, Any], from_file: str, lineno: int) -> None: # noqa: PLR0912
35+
def __init__(self, req: str, options: dict[str, Any], from_file: str, lineno: int) -> None:
3636
req = req.encode("utf-8").decode("utf-8")
3737
try:
3838
self._requirement: Requirement | Path | str = Requirement(req)

0 commit comments

Comments
 (0)