Skip to content

Commit be1a50a

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

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ repos:
2323
hooks:
2424
- id: validate-pyproject
2525
- repo: https://github.com/astral-sh/ruff-pre-commit
26-
rev: "v0.14.6"
26+
rev: "v0.14.7"
2727
hooks:
2828
- id: ruff-check
2929
args: ["--fix", "--unsafe-fixes", "--exit-non-zero-on-fix"]
@@ -38,7 +38,7 @@ repos:
3838
hooks:
3939
- id: rst-backticks
4040
- repo: https://github.com/rbubley/mirrors-prettier
41-
rev: "v3.6.2"
41+
rev: "v3.7.3"
4242
hooks:
4343
- id: prettier
4444
- repo: local

src/tox/plugin/manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ def tox_env_teardown(self, tox_env: ToxEnv) -> None:
112112
self.manager.hook.tox_env_teardown(tox_env=tox_env)
113113

114114
def load_plugins(self, path: Path) -> None:
115-
for _plugin in self.manager.get_plugins(): # make sure we start with a clean state, repeated in memory run
116-
self.manager.unregister(_plugin)
115+
for plugin in self.manager.get_plugins(): # make sure we start with a clean state, repeated in memory run
116+
self.manager.unregister(plugin)
117117
inline = _load_inline(path)
118118
self._register_plugins(inline)
119119
REGISTER._register_tox_env_types(self) # noqa: SLF001

src/tox/session/env_select.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,8 @@ def _defined_envs(self) -> dict[str, _ToxEnvInfo]: # noqa: C901, PLR0912
283283
other_env_info = self._defined_envs_.get(env.name)
284284
if other_env_info is not None and isinstance(other_env_info.env, RunToxEnv):
285285
del self._defined_envs_[env.name] # pragma: no cover
286-
for _pkg_env in other_env_info.env.package_envs: # pragma: no cover
287-
self._pkg_env_counter[_pkg_env.name] -= 1 # pragma: no cover
286+
for pkg_env in other_env_info.env.package_envs: # pragma: no cover
287+
self._pkg_env_counter[pkg_env.name] -= 1 # pragma: no cover
288288
except Exception: # noqa: BLE001
289289
assert self._defined_envs_[name].package_skip is not None # noqa: S101
290290
failed_to_create = failed.keys() - self._defined_envs_.keys()

tests/plugin/test_plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,12 +245,12 @@ def tox_add_env_config(env_conf: EnvConfigSet, state: State) -> None: # noqa: A
245245

246246
def test_plugin_config_frozen_past_add_env(tox_project: ToxProjectCreator, mocker: MockerFixture) -> None:
247247
def _cannot_extend_config(config_set: ConfigSet) -> None:
248-
for _conf in (
248+
for conf in (
249249
lambda c: c.add_constant("c", "desc", "v"),
250250
lambda c: c.add_config("c", of_type=str, default="c", desc="d"),
251251
):
252252
try:
253-
_conf(config_set) # type: ignore[no-untyped-call] # call to not typed function
253+
conf(config_set) # type: ignore[no-untyped-call] # call to not typed function
254254
raise NotImplementedError
255255
except RuntimeError as exc: # noqa: PERF203
256256
assert str(exc) == "config set has been marked final and cannot be extended" # noqa: PT017

0 commit comments

Comments
 (0)