From b5424ed6ebf1b38eb6c493afffce0a371f9474b5 Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Thu, 26 Nov 2026 14:32:27 +0100 Subject: [PATCH] Add a "venv" session ... ... to set up the local develop environment --- noxfile.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/noxfile.py b/noxfile.py index b6f8303..8ca27c7 100644 --- a/noxfile.py +++ b/noxfile.py @@ -350,6 +350,20 @@ def docs(session): print(f'Docs are available at {os.getcwd()}/{DOCS_BUILD}index.html') # noqa:WPS421 +@nox.session(name='venv', python=MAIN_PYTHON, venv_backend='none') +def create_develop_environment(session: Session) -> None: + """Set up the local develop environment in ".venv". + + All dependency groups and extras are installed + with the versions pinned in the uv.lock file. + """ + do_not_accept_arguments(session) + + # All dependency groups are installed because of "default-groups = 'all'" + # in the "[tool.uv]" section in pyproject.toml + session.run('uv', 'sync', '--all-extras', '--locked', external=True) + + @nox.session(name='fix-branch-references', python=MAIN_PYTHON, venv_backend='none') def fix_branch_references(session): # noqa:WPS210 """Replace branch references with the current branch.