Skip to content

Commit 5ec42c6

Browse files
[pre-commit.ci] pre-commit autoupdate (#3196)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Bernát Gábor <bgabor8@bloomberg.net> Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>
1 parent c51179c commit 5ec42c6

File tree

23 files changed

+41
-41
lines changed

23 files changed

+41
-41
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ repos:
1717
- id: tox-ini-fmt
1818
args: ["-p", "fix"]
1919
- repo: https://github.com/tox-dev/pyproject-fmt
20-
rev: 1.6.0
20+
rev: 1.7.0
2121
hooks:
2222
- id: pyproject-fmt
2323
additional_dependencies: ["tox>=4.11.4"]
@@ -27,7 +27,7 @@ repos:
2727
- id: blacken-docs
2828
additional_dependencies: [black==23.12.1]
2929
- repo: https://github.com/astral-sh/ruff-pre-commit
30-
rev: v0.1.13
30+
rev: v0.1.14
3131
hooks:
3232
- id: ruff-format
3333
- id: ruff

src/tox/config/cli/parse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,6 @@ def _get_parser_doc() -> ToxParser:
8989

9090

9191
__all__ = (
92-
"get_options",
9392
"Options",
93+
"get_options",
9494
)

src/tox/config/cli/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ def add_core_arguments(parser: ArgumentParser) -> None:
345345

346346
__all__ = (
347347
"DEFAULT_VERBOSITY",
348+
"HelpFormatter",
348349
"Parsed",
349350
"ToxParser",
350-
"HelpFormatter",
351351
)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ def is_negated(factor: str) -> bool:
9494

9595

9696
__all__ = (
97-
"filter_for_env",
98-
"find_envs",
9997
"expand_factors",
10098
"extend_factors",
99+
"filter_for_env",
100+
"find_envs",
101101
)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,9 @@ def replace_tty(args: list[str]) -> str:
346346

347347

348348
__all__ = (
349-
"find_replace_expr",
350349
"MatchArg",
351350
"MatchError",
352351
"MatchExpression",
352+
"find_replace_expr",
353353
"replace",
354354
)

src/tox/config/of_type.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ def __eq__(self, o: object) -> bool:
122122

123123

124124
__all__ = [
125-
"ConfigLoadArgs",
125+
"ConfigConstantDefinition",
126126
"ConfigDefinition",
127127
"ConfigDynamicDefinition",
128-
"ConfigConstantDefinition",
128+
"ConfigLoadArgs",
129129
]

src/tox/config/source/ini_section.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ def names(self) -> list[str]:
2323
CORE = IniSection(None, "tox")
2424

2525
__all__ = [
26-
"IniSection",
2726
"CORE",
28-
"TEST_ENV_PREFIX",
2927
"PKG_ENV_PREFIX",
28+
"TEST_ENV_PREFIX",
29+
"IniSection",
3030
]

src/tox/execute/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,10 +299,10 @@ def out_err(self) -> tuple[str, str]:
299299

300300
__all__ = (
301301
"ContentHandler",
302-
"Outcome",
303302
"Execute",
304303
"ExecuteInstance",
305304
"ExecuteOptions",
306305
"ExecuteStatus",
306+
"Outcome",
307307
"StdinSource",
308308
)

src/tox/execute/local_sub_process/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def write_stdin(self, content: str) -> None:
109109
try:
110110
if sys.platform == "win32": # explicit check for mypy # pragma: win32 cover
111111
# on Windows we have a PipeHandle object here rather than a file stream
112-
import _overlapped # type: ignore[import] # noqa: PLC0415
112+
import _overlapped # type: ignore[import] # noqa: PLC0415,PLC2701
113113

114114
ov = _overlapped.Overlapped(0)
115115
ov.WriteFile(stdin.handle, bytes_content) # type: ignore[attr-defined]
@@ -219,9 +219,9 @@ def __enter__(self) -> ExecuteStatus:
219219
status = LocalSubprocessExecuteStatus(self.options, self._out, self._err, process)
220220
drain, pid = self._on_exit_drain, self.process.pid
221221
self._read_stderr = ReadViaThread(stderr.send(process), self.err_handler, name=f"err-{pid}", drain=drain)
222-
self._read_stderr.__enter__() # noqa: PLC2801
222+
self._read_stderr.__enter__()
223223
self._read_stdout = ReadViaThread(stdout.send(process), self.out_handler, name=f"out-{pid}", drain=drain)
224-
self._read_stdout.__enter__() # noqa: PLC2801
224+
self._read_stdout.__enter__()
225225

226226
if sys.platform == "win32": # explicit check for mypy: # pragma: win32 cover
227227
process.stderr.read = self._read_stderr._drain_stream # type: ignore[assignment,union-attr] # noqa: SLF001
@@ -322,10 +322,10 @@ def _pty(key: str) -> tuple[int, int] | None:
322322

323323

324324
__all__ = (
325-
"SIG_INTERRUPT",
326325
"CREATION_FLAGS",
326+
"SIG_INTERRUPT",
327327
"LocalSubProcessExecuteInstance",
328328
"LocalSubProcessExecutor",
329-
"LocalSubprocessExecuteStatus",
330329
"LocalSubprocessExecuteFailedStatus",
330+
"LocalSubprocessExecuteStatus",
331331
)

src/tox/execute/local_sub_process/read_via_thread_windows.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from time import sleep # pragma: win32 cover
88
from typing import Callable # pragma: win32 cover
99

10-
import _overlapped # type: ignore[import] # pragma: win32 cover
10+
import _overlapped # type: ignore[import] # pragma: win32 cover # noqa: PLC2701
1111

1212
from .read_via_thread import ReadViaThread # pragma: win32 cover
1313

0 commit comments

Comments
 (0)