Skip to content

Commit e3fc7c6

Browse files
authored
make noxfile unwrap lines due to new limit (TGSAI#651)
1 parent 48eb538 commit e3fc7c6

File tree

1 file changed

+4
-32
lines changed

1 file changed

+4
-32
lines changed

noxfile.py

Lines changed: 4 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,7 @@
2424
python_versions = ["3.13", "3.12", "3.11"]
2525
nox.needs_version = ">=2025.2.9"
2626
nox.options.default_venv_backend = "uv"
27-
nox.options.sessions = (
28-
"pre-commit",
29-
"safety",
30-
"mypy",
31-
"tests",
32-
"typeguard",
33-
"xdoctest",
34-
"docs-build",
35-
)
27+
nox.options.sessions = ("pre-commit", "safety", "mypy", "tests", "typeguard", "xdoctest", "docs-build")
3628

3729

3830
def session_install_uv(
@@ -141,12 +133,7 @@ def activate_virtualenv_in_precommit_hooks(session: Session) -> None:
141133
@session(name="pre-commit", python=python_versions[0])
142134
def precommit(session: Session) -> None:
143135
"""Lint using pre-commit."""
144-
args = session.posargs or [
145-
"run",
146-
"--all-files",
147-
"--hook-stage=manual",
148-
"--show-diff-on-failure",
149-
]
136+
args = session.posargs or ["run", "--all-files", "--hook-stage=manual", "--show-diff-on-failure"]
150137
session_install_uv_package(session, ["ruff", "pre-commit", "pre-commit-hooks"])
151138
session.run("pre-commit", *args)
152139
if args and args[0] == "install":
@@ -164,13 +151,7 @@ def safety(session: Session) -> None:
164151

165152
# CVE-2019-8341, jinja2: not a problem for us
166153
ignore = ["70612"]
167-
session.run(
168-
"safety",
169-
"check",
170-
"--full-report",
171-
f"--file={requirements_tmp}",
172-
f"--ignore={','.join(ignore)}",
173-
)
154+
session.run("safety", "check", "--full-report", f"--file={requirements_tmp}", f"--ignore={','.join(ignore)}")
174155

175156

176157
@session(python=python_versions)
@@ -188,16 +169,7 @@ def mypy(session: Session) -> None:
188169
def tests(session: Session) -> None:
189170
"""Run the test suite."""
190171
session_install_uv(session)
191-
session_install_uv_package(
192-
session,
193-
[
194-
"coverage[toml]",
195-
"pytest",
196-
"pygments",
197-
"pytest-dependency",
198-
"s3fs",
199-
],
200-
)
172+
session_install_uv_package(session, ["coverage[toml]", "pytest", "pygments", "pytest-dependency", "s3fs"])
201173

202174
try:
203175
session.run("coverage", "run", "--parallel", "-m", "pytest", *session.posargs)

0 commit comments

Comments
 (0)