From 7cb1c18c25b03aeb981d3838ad087a00c161b24b 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/resources/requirements.txt | 2 +- noxfile.py | 12 +++++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/resources/requirements.txt b/.github/workflows/resources/requirements.txt index c795af90d..ea4542346 100644 --- a/.github/workflows/resources/requirements.txt +++ b/.github/workflows/resources/requirements.txt @@ -1,4 +1,4 @@ griffe~=1.5 -nox @ git+https://github.com/wntrblm/nox.git@refs/pull/921/head +nox @ git+https://github.com/wntrblm/nox.git@main pre-commit==4.1.0 twine==6.1.0 diff --git a/noxfile.py b/noxfile.py index 2ff9bae11..3ab285ed5 100644 --- a/noxfile.py +++ b/noxfile.py @@ -9,7 +9,7 @@ import nox -nox.needs_version = ">=2024.4.15" +nox.needs_version = ">=2025.2.9" nox.options.default_venv_backend = "uv" RUFF_OVERRIDES = """\ @@ -31,16 +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"] +dependency_groups = nox.project.load_toml()["dependency-groups"] test_dependencies: list[str] = dependency_groups["dev"] typing_dependencies: list[str] = dependency_groups["typing"] @@ -275,7 +274,6 @@ def version_bump(session: nox.Session) -> None: def api_changes(session: nox.Session) -> None: """Check for API changes.""" args = [ - "griffe", "check", "singer_sdk", ] @@ -286,4 +284,4 @@ def api_changes(session: nox.Session) -> None: if "GITHUB_ACTIONS" in os.environ: args.append("-f=github") - session.run("uv", "tool", "run", *args, external=True) + session.run("uvx", "griffe", *args, external=True)