Enable PTH in ruff

This commit is contained in:
Alexander Hess 2026-11-30 21:11:14 +01:00
commit 9cc21f5b69
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -135,7 +135,7 @@ os.environ.setdefault("UV_PYTHON_PREFERENCE", "only-managed")
# Where to keep temporary files (e.g., the constraints file in `install_pinned()`)
tempfile.tempdir = ".cache/tmp"
os.makedirs(tempfile.tempdir, exist_ok=True)
pathlib.Path(tempfile.tempdir).mkdir(parents=True, exist_ok=True)
@nox.session(name="format", python=MAIN_PYTHON)
@ -318,7 +318,7 @@ def build_docs(session: nox.Session) -> None:
# Verify that all external links return 200 OK
session.run("sphinx-build", "-b", "linkcheck", DOCS_LOCATION, DOCS_BUILD)
session.log(f"Docs are available at {os.getcwd()}/{DOCS_BUILD}index.html")
session.log(f"Docs are available at {pathlib.Path.cwd()}/{DOCS_BUILD}index.html")
@nox.session(name="venv", python=MAIN_PYTHON, venv_backend="none")