Skip to content

Commit 126dca2

Browse files
authored
refactor: 🔨 switch to using uvx for dev tooling, uv run isn't needed (#285)
# Description That way we don't need to include them in our venv library. Closes #279 Needs a quick review. ## Checklist - [x] Ran `just run-all`
1 parent 3ca4fe5 commit 126dca2

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎template/TODO.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
after copying the project.
55
- Run `git init -b main` to create the project as a Git repository.
66
- Install these packages
7-
`uv add --dev pre-commit ruff typos pytest bandit commitizen genbadge jupyter pytest-cov quartodoc types-tabulate mypy vulture`
7+
`uv add --dev pytest genbadge jupyter pytest-cov quartodoc quarto types-tabulate mypy`
88
- Run `just list-todos` and complete all the TODO items.
99
- Run `just install-precommit` to install the pre-commit hooks.
1010
- Run `just build-readme` to build the Markdown version of the README.

‎template/justfile.jinja‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ test-python:
5454
# Check Python code for any errors that need manual attention
5555
check-python:
5656
# Check formatting
57-
uv run ruff check .
57+
uvx ruff check .
5858
# Check types
5959
uv run mypy --pretty .
6060

6161
# Reformat Python code to match coding style and general structure
6262
format-python:
63-
uv run ruff check --fix .
64-
uv run ruff format .
63+
uvx ruff check --fix .
64+
uvx ruff format .
6565

6666
# Format Markdown files
6767
format-md:
@@ -99,11 +99,11 @@ check-commits:
9999

100100
# Run basic security checks on the package
101101
check-security:
102-
uv run bandit -r src/
102+
uvx bandit -r src/
103103

104104
# Check for spelling errors in files
105105
check-spelling:
106-
uv run typos
106+
uvx typos
107107

108108
# Install lychee from https://lychee.cli.rs/guides/getting-started/
109109
# Check that URLs work
@@ -123,7 +123,7 @@ check-unused:
123123
# - 60 %: attribute, class, function, method, property, variable
124124
# There are some things should be ignored though, with the allowlist.
125125
# Create an allowlist with `vulture --make-allowlist`
126-
uv run vulture --min-confidence 100 src/ tests/ **/vulture-allowlist.py
126+
uvx vulture --min-confidence 100 src/ tests/ **/vulture-allowlist.py
127127

128128
# Re-build the README file from the Quarto version
129129
build-readme:

0 commit comments

Comments
 (0)