Skip to content

Commit 1a838b2

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

File tree

3 files changed

+25
-25
lines changed

3 files changed

+25
-25
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@ repos:
1010
- id: check-github-workflows
1111
args: ["--verbose"]
1212
- repo: https://github.com/codespell-project/codespell
13-
rev: v2.4.1
13+
rev: v2.4.2
1414
hooks:
1515
- id: codespell
1616
args: ["--write-changes"]
1717
- repo: https://github.com/tox-dev/tox-toml-fmt
18-
rev: "v1.8.0"
18+
rev: "v1.9.1"
1919
hooks:
2020
- id: tox-toml-fmt
2121
- repo: https://github.com/tox-dev/pyproject-fmt
2222
rev: "v2.16.2"
2323
hooks:
2424
- id: pyproject-fmt
2525
- repo: https://github.com/astral-sh/ruff-pre-commit
26-
rev: "v0.15.4"
26+
rev: "v0.15.5"
2727
hooks:
2828
- id: ruff-format
2929
- id: ruff

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def _check_os_environ_stable():
153153
old = os.environ.copy()
154154
# ensure we don't inherit parent env variables
155155
to_clean = {k for k in os.environ if k.startswith(("VIRTUALENV_", "TOX_")) or "VIRTUAL_ENV" in k}
156-
cleaned = {k: os.environ[k] for k, v in os.environ.items()}
156+
cleaned = {k: os.environ[k] for k in os.environ}
157157
override = {
158158
"VIRTUALENV_NO_PERIODIC_UPDATE": "1",
159159
"VIRTUALENV_NO_DOWNLOAD": "1",

tox.toml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ commands = [
3737
"run",
3838
"-m",
3939
"pytest",
40-
{ replace = "posargs", extend = true, default = [
40+
{ replace = "posargs", default = [
4141
"--junitxml",
4242
"{work_dir}{/}junit.{env_name}.xml",
4343
"tests",
@@ -46,7 +46,7 @@ commands = [
4646
"auto",
4747
"--dist",
4848
"loadfile",
49-
] },
49+
], extend = true },
5050
],
5151
[ "coverage", "combine" ],
5252
[ "coverage", "report", "--skip-covered", "--show-missing" ],
@@ -101,12 +101,12 @@ commands = [ [ "pre-commit", "run", "--all-files", "--show-diff-on-failure" ] ]
101101
commands = [
102102
[
103103
"pytest",
104-
{ replace = "posargs", extend = true, default = [
104+
{ replace = "posargs", default = [
105105
"--junitxml",
106106
"{work_dir}{/}junit.{env_name}.xml",
107107
"tests",
108108
"--skip-slow",
109-
] },
109+
], extend = true },
110110
],
111111
]
112112

@@ -124,12 +124,12 @@ commands = [
124124
commands = [
125125
[
126126
"pytest",
127-
{ replace = "posargs", extend = true, default = [
127+
{ replace = "posargs", default = [
128128
"--junitxml",
129129
"{work_dir}{/}junit.{env_name}.xml",
130130
"tests",
131131
"--skip-slow",
132-
] },
132+
], extend = true },
133133
],
134134
]
135135

@@ -138,21 +138,6 @@ description = "run type checker (ty) against Python 3.14"
138138
dependency_groups = [ "type" ]
139139
commands = [ [ "python", "-m", "ty", "check", "src/virtualenv", "--python-version", "3.14" ] ]
140140

141-
[env.upgrade]
142-
description = "upgrade pip/wheels/setuptools to latest"
143-
skip_install = true
144-
deps = [ "ruff>=0.12.4" ]
145-
pass_env = [ "UPGRADE_ADVISORY" ]
146-
change_dir = "{tox_root}{/}tasks"
147-
commands = [ [ "python", "upgrade_wheels.py" ] ]
148-
uv_seed = true
149-
150-
[env.release]
151-
description = "do a release, required posarg of the version number"
152-
deps = [ "gitpython>=3.1.44", "packaging>=25", "pre-commit-uv>=4.1.4", "towncrier>=24.8" ]
153-
change_dir = "{tox_root}{/}tasks"
154-
commands = [ [ "python", "release.py", { replace = "posargs", extend = true } ] ]
155-
156141
[env.dev]
157142
description = "generate a DEV environment"
158143
package = "editable"
@@ -162,6 +147,21 @@ commands = [
162147
[ "python", "-c", "import sys; print(sys.executable)" ],
163148
]
164149

150+
[env.release]
151+
description = "do a release, required posarg of the version number"
152+
deps = [ "gitpython>=3.1.44", "packaging>=25", "pre-commit-uv>=4.1.4", "towncrier>=24.8" ]
153+
change_dir = "{tox_root}{/}tasks"
154+
commands = [ [ "python", "release.py", { replace = "posargs", extend = true } ] ]
155+
156+
[env.upgrade]
157+
description = "upgrade pip/wheels/setuptools to latest"
158+
skip_install = true
159+
deps = [ "ruff>=0.12.4" ]
160+
pass_env = [ "UPGRADE_ADVISORY" ]
161+
change_dir = "{tox_root}{/}tasks"
162+
commands = [ [ "python", "upgrade_wheels.py" ] ]
163+
uv_seed = true
164+
165165
[env.zipapp]
166166
description = "generate a zipapp"
167167
skip_install = true

0 commit comments

Comments
 (0)