Skip to content

Commit

Permalink
chore: Bump Nox
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Jan 31, 2025
1 parent df11728 commit 232bf4f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/cookiecutter-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
- "cookiecutter/**"
- "e2e-tests/cookiecutters/**"
- ".github/workflows/cookiecutter-e2e.yml"
- ".github/workflows/resources/requirements.txt"
push:
branches:
- main
Expand All @@ -17,6 +18,7 @@ on:
- "cookiecutter/**"
- "e2e-tests/cookiecutters/**"
- ".github/workflows/cookiecutter-e2e.yml"
- ".github/workflows/resources/requirements.txt"
workflow_dispatch:

concurrency:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/resources/requirements.txt
Original file line number Diff line number Diff line change
@@ -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
13 changes: 6 additions & 7 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down Expand Up @@ -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),
Expand All @@ -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")
Expand Down

0 comments on commit 232bf4f

Please sign in to comment.