Skip to content

Commit 4522ae4

Browse files
committed
chore: add vulture dead-code checks
1 parent 555a01a commit 4522ae4

3 files changed

Lines changed: 11 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ repos:
2020
args: [--fix]
2121
- id: ruff-format
2222

23+
- repo: https://github.com/jendrikseipp/vulture
24+
rev: v2.16
25+
hooks:
26+
- id: vulture
27+
2328
- repo: https://github.com/pre-commit/mirrors-mypy
2429
rev: v1.15.0
2530
hooks:

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ dev = [
3838
"pytest",
3939
"pytest-cov",
4040
"mypy",
41+
"vulture",
4142
"types-PyYAML",
4243
"types-requests",
4344
]
@@ -78,6 +79,10 @@ indent-style = "space"
7879
skip-magic-trailing-comma = false
7980
line-ending = "auto"
8081

82+
[tool.vulture]
83+
paths = ["set_dns.py", "install.py"]
84+
min_confidence = 80
85+
8186
[tool.mypy]
8287
python_version = "3.9"
8388
warn_return_any = true

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ types-requests
1212

1313
# Linting and formatting (via pre-commit)
1414
pre-commit>=4.0.0
15+
vulture>=2.16

0 commit comments

Comments
 (0)