From 554daa40342a47b53e929c1dbe9678893d114ea3 Mon Sep 17 00:00:00 2001 From: "Luke W. Johnston" Date: Thu, 21 May 2026 20:36:06 +0200 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=94=A8=20switch=20to=20using?= =?UTF-8?q?=20`uvx`=20for=20dev=20tooling,=20`uv=20run`=20isn't=20needed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/TODO.md | 2 +- template/justfile.jinja | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/template/TODO.md b/template/TODO.md index 341ff86..d565200 100644 --- a/template/TODO.md +++ b/template/TODO.md @@ -4,7 +4,7 @@ after copying the project. - Run `git init -b main` to create the project as a Git repository. - Install these packages - `uv add --dev pre-commit ruff typos pytest bandit commitizen genbadge jupyter pytest-cov quartodoc types-tabulate mypy vulture` + `uv add --dev pytest genbadge jupyter pytest-cov quartodoc quarto types-tabulate mypy` - Run `just list-todos` and complete all the TODO items. - Run `just install-precommit` to install the pre-commit hooks. - Run `just build-readme` to build the Markdown version of the README. diff --git a/template/justfile.jinja b/template/justfile.jinja index efe61a4..3e61e2f 100644 --- a/template/justfile.jinja +++ b/template/justfile.jinja @@ -54,14 +54,14 @@ test-python: # Check Python code for any errors that need manual attention check-python: # Check formatting - uv run ruff check . + uvx ruff check . # Check types uv run mypy --pretty . # Reformat Python code to match coding style and general structure format-python: - uv run ruff check --fix . - uv run ruff format . + uvx ruff check --fix . + uvx ruff format . # Format Markdown files format-md: @@ -99,11 +99,11 @@ check-commits: # Run basic security checks on the package check-security: - uv run bandit -r src/ + uvx bandit -r src/ # Check for spelling errors in files check-spelling: - uv run typos + uvx typos # Install lychee from https://lychee.cli.rs/guides/getting-started/ # Check that URLs work @@ -133,7 +133,7 @@ check-unused: # - 60 %: attribute, class, function, method, property, variable # There are some things should be ignored though, with the allowlist. # Create an allowlist with `vulture --make-allowlist` - uv run vulture --min-confidence 100 src/ tests/ **/vulture-allowlist.py + uvx vulture --min-confidence 100 src/ tests/ **/vulture-allowlist.py # Re-build the README file from the Quarto version build-readme: