From d0b6759b84c3e5dd2d27cbf7ef8e8e3fc9c85444 Mon Sep 17 00:00:00 2001 From: Joel Ostblom Date: Tue, 17 Feb 2026 13:16:42 +0100 Subject: [PATCH] feat: :sparkles: Use ruff to check for unused arguments instead of vulture --- template/justfile.jinja | 2 +- template/ruff.toml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/template/justfile.jinja b/template/justfile.jinja index 44c1081..fb66419 100644 --- a/template/justfile.jinja +++ b/template/justfile.jinja @@ -126,7 +126,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 src/ tests/ **/vulture-allowlist.py + uv run vulture --min-confidence 100 src/ tests/ **/vulture-allowlist.py # Re-build the README file from the Quarto version build-readme: diff --git a/template/ruff.toml b/template/ruff.toml index 9171953..7c08aab 100644 --- a/template/ruff.toml +++ b/template/ruff.toml @@ -9,7 +9,9 @@ extend-select = [ # Add rule that all functions have docstrings. "D", # Add isort to list. - "I" + "I", + # Check for unused arguments + "ARG", ] # Ignore missing docstring at the top of files ignore = ["D100"]