@@ -54,14 +54,14 @@ test-python:
5454# Check Python code for any errors that need manual attention
5555check-python:
5656 # Check formatting
57- uv run ruff check . --config .config/ruff.toml
57+ uvx ruff check . --config .config/ruff.toml
5858 # Check types
5959 uv run mypy --pretty . --config-file .config/mypy.ini
6060
6161# Reformat Python code to match coding style and general structure
6262format-python:
63- uv run ruff check --fix . --config .config/ruff.toml
64- uv run ruff format . --config .config/ruff.toml
63+ uvx ruff check --fix . --config .config/ruff.toml
64+ uvx ruff format . --config .config/ruff.toml
6565
6666# Format Markdown files
6767format-md:
@@ -99,11 +99,11 @@ check-commits:
9999
100100# Run basic security checks on the package
101101check-security:
102- uv run bandit -r src/
102+ uvx bandit -r src/
103103
104104# Check for spelling errors in files
105105check-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
@@ -113,16 +113,6 @@ check-urls:
113113 --extensions md,qmd,py \
114114 --exclude-path "_badges.qmd"
115115
116- # Build the documentation as PDF using Quarto
117- build-pdf:
118- # To let Quarto know where python is.
119- export QUARTO_PYTHON=.venv/bin/python3
120- uv run quarto install tinytex
121- # For generating images from Mermaid diagrams
122- uv run quarto install chromium
123- uv run quarto render --profile pdf --to pdf
124- find docs -name "mermaid-figure-*.png" -delete
125-
126116# Check for unused code in the package and its tests
127117check-unused:
128118 # exit code=0: No unused code was found
@@ -133,7 +123,7 @@ check-unused:
133123 # - 60 %: attribute, class, function, method, property, variable
134124 # There are some things should be ignored though, with the allowlist.
135125 # Create an allowlist with `vulture --make-allowlist`
136- uv run vulture --min-confidence 100 src/ tests/ **/vulture-allowlist.py
126+ uvx vulture --min-confidence 100 src/ tests/ **/vulture-allowlist.py
137127
138128# Re-build the README file from the Quarto version
139129build-readme:
0 commit comments