Skip to content

Commit 12941f3

Browse files
authored
feat: ✨ use ruff to check for unused arguments instead of vulture (#246)
1 parent cb529c1 commit 12941f3

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

template/justfile.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ check-unused:
126126
# - 60 %: attribute, class, function, method, property, variable
127127
# There are some things should be ignored though, with the allowlist.
128128
# Create an allowlist with `vulture --make-allowlist`
129-
uv run vulture src/ tests/ **/vulture-allowlist.py
129+
uv run vulture --min-confidence 100 src/ tests/ **/vulture-allowlist.py
130130

131131
# Re-build the README file from the Quarto version
132132
build-readme:

template/ruff.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ extend-select = [
99
# Add rule that all functions have docstrings.
1010
"D",
1111
# Add isort to list.
12-
"I"
12+
"I",
13+
# Check for unused arguments
14+
"ARG",
1315
]
1416
# Ignore missing docstring at the top of files
1517
ignore = ["D100"]

0 commit comments

Comments
 (0)