Skip to content

Commit a430b15

Browse files
committed
Copier Template: pyproject: vulture: Lower confidence threshold and add whitelist file.
1 parent 7c05ebf commit a430b15

4 files changed

Lines changed: 19 additions & 8 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
ComparisonResult # unused variable
2+
NominativeArguments # unused variable
3+
PositionalArguments # unused variable
4+
package_name # unused variable
5+
silence # unused variable

pyproject.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ linters = [
145145
# --- BEGIN: Injected by Copier ---
146146
# --- END: Injected by Copier ---
147147
"""isort --check-only --diff sources tests""",
148-
"""vulture sources""",
148+
"""vulture""",
149149
"""pyright sources""",
150150
]
151151
packagers = [
@@ -269,6 +269,7 @@ markers = [
269269
[tool.ruff]
270270
builtins = [ 'ictr' ]
271271
cache-dir = '.auxiliary/caches/ruff'
272+
extend-exclude = [ 'vulturefood.py' ]
272273
indent-width = 4
273274
line-length = 79
274275
[tool.ruff.lint]
@@ -373,10 +374,10 @@ name = 'Repairs'
373374
showcontent = true
374375

375376
[tool.vulture]
376-
paths = [ 'sources' ]
377-
min_confidence = 80
377+
paths = [ '.auxiliary/configuration/vulturefood.py', 'sources' ]
378+
min_confidence = 60
378379
exclude = [
379380
'*/imports.py',
380381
]
381382
ignore_decorators = [ '@__.cabc.abstractmethod', '@__.typx.overload' ]
382-
ignore_names = [ ]
383+
ignore_names = [ 'main' ]
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
ComparisonResult # unused variable
2+
NominativeArguments # unused variable
3+
PositionalArguments # unused variable
4+
package_name # unused variable

template/pyproject.toml.jinja

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ linters = [
183183
{%- endif %}
184184
# --- END: Injected by Copier ---
185185
"""isort --check-only --diff sources tests""",
186-
"""vulture sources""",
186+
"""vulture""",
187187
"""pyright sources""",
188188
]
189189
packagers = [
@@ -327,6 +327,7 @@ markers = [
327327
[tool.ruff]
328328
#builtins = [ 'ic' ]
329329
cache-dir = '.auxiliary/caches/ruff'
330+
extend-exclude = [ 'vulturefood.py' ]
330331
indent-width = 4
331332
line-length = 79
332333
[tool.ruff.lint]
@@ -418,10 +419,10 @@ name = 'Repairs'
418419
showcontent = true
419420

420421
[tool.vulture]
421-
paths = [ 'sources' ]
422-
min_confidence = 80
422+
paths = [ '.auxiliary/configuration/vulturefood.py', 'sources' ]
423+
min_confidence = 60
423424
exclude = [
424425
'*/imports.py',
425426
]
426427
ignore_decorators = [ '@__.cabc.abstractmethod', '@__.typx.overload' ]
427-
ignore_names = [ ]
428+
ignore_names = [ 'main' ]

0 commit comments

Comments
 (0)