Skip to content

Commit 3f004fc

Browse files
[pre-commit.ci] pre-commit autoupdate (#3329)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent fab358e commit 3f004fc

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ repos:
55
- id: end-of-file-fixer
66
- id: trailing-whitespace
77
- repo: https://github.com/python-jsonschema/check-jsonschema
8-
rev: 0.29.1
8+
rev: 0.29.2
99
hooks:
1010
- id: check-github-workflows
1111
args: ["--verbose"]
@@ -24,7 +24,7 @@ repos:
2424
hooks:
2525
- id: pyproject-fmt
2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: "v0.5.7"
27+
rev: "v0.6.3"
2828
hooks:
2929
- id: ruff-format
3030
- id: ruff

src/tox/plugin/spec.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919

2020
@_spec
21-
def tox_register_tox_env(register: ToxEnvRegister) -> None: # noqa: ARG001
21+
def tox_register_tox_env(register: ToxEnvRegister) -> None:
2222
"""
2323
Register new tox environment type. You can register:
2424
@@ -30,7 +30,7 @@ def tox_register_tox_env(register: ToxEnvRegister) -> None: # noqa: ARG001
3030

3131

3232
@_spec
33-
def tox_add_option(parser: ToxParser) -> None: # noqa: ARG001
33+
def tox_add_option(parser: ToxParser) -> None:
3434
"""
3535
Add a command line argument. This is the first hook to be called, right after the logging setup and config source
3636
discovery.
@@ -40,7 +40,7 @@ def tox_add_option(parser: ToxParser) -> None: # noqa: ARG001
4040

4141

4242
@_spec
43-
def tox_add_core_config(core_conf: ConfigSet, state: State) -> None: # noqa: ARG001
43+
def tox_add_core_config(core_conf: ConfigSet, state: State) -> None:
4444
"""
4545
Called when the core configuration is built for a tox environment.
4646
@@ -50,7 +50,7 @@ def tox_add_core_config(core_conf: ConfigSet, state: State) -> None: # noqa: AR
5050

5151

5252
@_spec
53-
def tox_add_env_config(env_conf: EnvConfigSet, state: State) -> None: # noqa: ARG001
53+
def tox_add_env_config(env_conf: EnvConfigSet, state: State) -> None:
5454
"""
5555
Called when configuration is built for a tox environment.
5656
@@ -60,7 +60,7 @@ def tox_add_env_config(env_conf: EnvConfigSet, state: State) -> None: # noqa: A
6060

6161

6262
@_spec
63-
def tox_before_run_commands(tox_env: ToxEnv) -> None: # noqa: ARG001
63+
def tox_before_run_commands(tox_env: ToxEnv) -> None:
6464
"""
6565
Called before the commands set is executed.
6666
@@ -69,7 +69,7 @@ def tox_before_run_commands(tox_env: ToxEnv) -> None: # noqa: ARG001
6969

7070

7171
@_spec
72-
def tox_after_run_commands(tox_env: ToxEnv, exit_code: int, outcomes: list[Outcome]) -> None: # noqa: ARG001
72+
def tox_after_run_commands(tox_env: ToxEnv, exit_code: int, outcomes: list[Outcome]) -> None:
7373
"""
7474
Called after the commands set is executed.
7575
@@ -80,7 +80,7 @@ def tox_after_run_commands(tox_env: ToxEnv, exit_code: int, outcomes: list[Outco
8080

8181

8282
@_spec
83-
def tox_on_install(tox_env: ToxEnv, arguments: Any, section: str, of_type: str) -> None: # noqa: ARG001
83+
def tox_on_install(tox_env: ToxEnv, arguments: Any, section: str, of_type: str) -> None:
8484
"""
8585
Called before executing an installation command.
8686
@@ -92,7 +92,7 @@ def tox_on_install(tox_env: ToxEnv, arguments: Any, section: str, of_type: str)
9292

9393

9494
@_spec
95-
def tox_env_teardown(tox_env: ToxEnv) -> None: # noqa: ARG001
95+
def tox_env_teardown(tox_env: ToxEnv) -> None:
9696
"""
9797
Called after a tox environment has been teared down.
9898

src/tox/pytest.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353

5454

5555
@pytest.fixture(autouse=True)
56-
def ensure_logging_framework_not_altered() -> Iterator[None]: # noqa: PT004
56+
def ensure_logging_framework_not_altered() -> Iterator[None]:
5757
before_handlers = list(LOGGER.handlers)
5858
yield
5959
LOGGER.handlers = before_handlers
@@ -109,14 +109,14 @@ def check_os_environ() -> Iterator[None]:
109109

110110

111111
@pytest.fixture(autouse=True)
112-
def check_os_environ_stable(monkeypatch: pytest.MonkeyPatch) -> Iterator[None]: # noqa: PT004
112+
def check_os_environ_stable(monkeypatch: pytest.MonkeyPatch) -> Iterator[None]:
113113
with check_os_environ():
114114
yield
115115
monkeypatch.undo()
116116

117117

118118
@pytest.fixture(autouse=True)
119-
def no_color(monkeypatch: pytest.MonkeyPatch, check_os_environ_stable: None) -> None: # noqa: ARG001, PT004
119+
def no_color(monkeypatch: pytest.MonkeyPatch, check_os_environ_stable: None) -> None: # noqa: ARG001
120120
monkeypatch.setenv("NO_COLOR", "yes")
121121

122122

@@ -295,7 +295,7 @@ def __repr__(self) -> str:
295295

296296

297297
@pytest.fixture(autouse=True, scope="session")
298-
def enable_pep517_backend_coverage() -> Iterator[None]: # noqa: PT004
298+
def enable_pep517_backend_coverage() -> Iterator[None]:
299299
try:
300300
import coverage # noqa: F401, PLC0415
301301
except ImportError: # pragma: no cover
@@ -482,7 +482,7 @@ def pypi_server(tmp_path_factory: pytest.TempPathFactory) -> Iterator[IndexServe
482482

483483

484484
@pytest.fixture(scope="session")
485-
def _invalid_index_fake_port() -> int: # noqa: PT005
485+
def _invalid_index_fake_port() -> int:
486486
with closing(socket.socket(socket.AF_INET, socket.SOCK_STREAM)) as socket_handler:
487487
socket_handler.bind(("", 0))
488488
return cast(int, socket_handler.getsockname()[1])

tests/config/test_sets.py

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

2424

2525
@pytest.fixture(name="conf_builder")
26-
def _conf_builder(tox_ini_conf: ToxIniCreator) -> ConfBuilder: # noqa: PT005
26+
def _conf_builder(tox_ini_conf: ToxIniCreator) -> ConfBuilder:
2727
def _make(conf_str: str) -> ConfigSet:
2828
return tox_ini_conf(f"[tox]\nenvlist=py39\n[testenv]\n{conf_str}").get_env("py39")
2929

tests/type_check/add_config_container_factory.py

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

1010
class EnvDockerConfigSet(ConfigSet):
1111
def register_config(self) -> None:
12-
def factory(container_name: object) -> str: # noqa: ARG001
12+
def factory(container_name: object) -> str:
1313
raise NotImplementedError
1414

1515
self.add_config(

0 commit comments

Comments
 (0)