@@ -414,11 +414,13 @@ images:
414
414
# help: sbom - Produce a CycloneDX SBOM and vulnerability scan
415
415
# help: pytype - Flow-sensitive type checker
416
416
# help: check-manifest - Verify sdist/wheel completeness
417
+ # help: unimport - Unused import detection
418
+ # help: vulture - Dead code detection
417
419
418
420
# List of individual lint targets; lint loops over these
419
421
LINTERS := isort flake8 pylint mypy bandit pydocstyle pycodestyle pre-commit \
420
422
ruff pyright radon pyroma pyrefly spellcheck importchecker \
421
- pytype check-manifest markdownlint
423
+ pytype check-manifest markdownlint vulture unimport
422
424
423
425
.PHONY : lint $(LINTERS ) black fawltydeps wily depend snakeviz pstats \
424
426
spellcheck-sort tox pytype sbom
@@ -599,6 +601,12 @@ check-manifest: ## 📦 Verify MANIFEST.in completeness
599
601
@echo " 📦 Verifying MANIFEST.in completeness..."
600
602
@$(VENV_DIR ) /bin/check-manifest
601
603
604
+ unimport : # # 📦 Unused import detection
605
+ @echo " 📦 unimport …" && $(VENV_DIR ) /bin/unimport --check --diff mcpgateway
606
+
607
+ vulture : # # 🧹 Dead code detection
608
+ @echo " 🧹 vulture …" && $(VENV_DIR ) /bin/vulture mcpgateway --min-confidence 80
609
+
602
610
# -----------------------------------------------------------------------------
603
611
# 📑 GRYPE SECURITY/VULNERABILITY SCANNING
604
612
# -----------------------------------------------------------------------------
0 commit comments