From 232bf4f54ed1d92dfeff1e38be7d59629ba53e01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez-Mondrag=C3=B3n?= Date: Fri, 31 Jan 2025 16:17:03 -0600 Subject: [PATCH] chore: Bump Nox --- .github/workflows/cookiecutter-e2e.yml | 2 ++ .github/workflows/resources/requirements.txt | 2 +- noxfile.py | 13 ++++++------- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cookiecutter-e2e.yml b/.github/workflows/cookiecutter-e2e.yml index 8a1339bb4..eb5b21904 100644 --- a/.github/workflows/cookiecutter-e2e.yml +++ b/.github/workflows/cookiecutter-e2e.yml @@ -8,6 +8,7 @@ on: - "cookiecutter/**" - "e2e-tests/cookiecutters/**" - ".github/workflows/cookiecutter-e2e.yml" + - ".github/workflows/resources/requirements.txt" push: branches: - main @@ -17,6 +18,7 @@ on: - "cookiecutter/**" - "e2e-tests/cookiecutters/**" - ".github/workflows/cookiecutter-e2e.yml" + - ".github/workflows/resources/requirements.txt" workflow_dispatch: concurrency: diff --git a/.github/workflows/resources/requirements.txt b/.github/workflows/resources/requirements.txt index 73981c47a..b9830e37f 100644 --- a/.github/workflows/resources/requirements.txt +++ b/.github/workflows/resources/requirements.txt @@ -1,5 +1,5 @@ griffe~=1.5 -nox==2024.10.9 +nox @ git+https://github.com/wntrblm/nox.git@refs/pull/921/head pip==25.0 pre-commit==4.1.0 twine==6.1.0 diff --git a/noxfile.py b/noxfile.py index fd29ae214..18ac0842f 100644 --- a/noxfile.py +++ b/noxfile.py @@ -31,14 +31,15 @@ ] main_python_version = "3.13" locations = "singer_sdk", "tests", "noxfile.py", "docs/conf.py" -nox.options.sessions = [ +nox.options.sessions = ( "mypy", "tests", "benches", "doctest", "test_cookiecutter", -] +) +# TODO: https://github.com/wntrblm/nox/pull/917 dependency_groups = nox.project.load_toml("pyproject.toml")["dependency-groups"] test_dependencies: list[str] = dependency_groups["dev"] typing_dependencies: list[str] = dependency_groups["typing"] @@ -219,9 +220,7 @@ def test_cookiecutter(session: nox.Session, replay_file_path: Path) -> None: # TODO: Use uvx # https://github.com/wntrblm/nox/pull/920 session.run( - "uv", - "tool", - "run", + "uvx", "cookiecutter", "--replay-file", str(replay_file), @@ -243,11 +242,11 @@ def test_cookiecutter(session: nox.Session, replay_file_path: Path) -> None: # Check that the project can be built for distribution session.run("uv", "build") - session.run("uv", "tool", "run", "twine", "check", "dist/*") + session.run("uvx", "twine", "check", "dist/*") session.run("git", "init", "-b", "main", external=True) session.run("git", "add", ".", external=True) - session.run("uv", "tool", "run", "pre-commit", "run", "--all-files", external=True) + session.run("uvx", "pre-commit", "run", "--all-files", external=True) @nox.session(name="version-bump")