Skip to content

Commit

Permalink
Use uv tool run
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Jan 31, 2025
1 parent ec9717d commit 40d2b6e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,9 @@ def test_cookiecutter(session: nox.Session, replay_file_path: Path) -> None:
session.run("rm", "-fr", str(cc_test_output), external=True)

session.run(
"uvx",
"uv",
"tool",
"run",
"cookiecutter",
"--replay-file",
str(replay_file),
Expand All @@ -239,11 +241,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("uvx", "twine", "check", "dist/*")
session.run("uv", "tool", "run", "twine", "check", "dist/*")

session.run("git", "init", "-b", "main", external=True)
session.run("git", "add", ".", external=True)
session.run("uvx", "pre-commit", "run", "--all-files", external=True)
session.run("uv", "tool", "run", "pre-commit", "run", "--all-files", external=True)


@nox.session(name="version-bump")
Expand Down

0 comments on commit 40d2b6e

Please sign in to comment.