notify-api-387 scan projects for unused code

This commit is contained in:
Kenneth Kehl
2023-08-08 11:00:09 -07:00
parent 382d263972
commit b92f386290
3 changed files with 7 additions and 0 deletions

View File

@@ -36,6 +36,8 @@ jobs:
run: pipenv run flake8 .
- name: Check imports alphabetized
run: pipenv run isort --check-only ./app ./tests
- name: Check dead-code
run: make dead-code
- name: Run js lint
run: npm run lint
- name: Run js tests

View File

@@ -59,6 +59,10 @@ py-test: ## Run python unit tests
pipenv run coverage report --fail-under=96
pipenv run coverage html -d .coverage_cache
.PHONY: dead-code
dead-code:
pipenv run vulture ./app --min-confidence=100
.PHONY: e2e-test
e2e-test: export NEW_RELIC_ENVIRONMENT=test
e2e-test: ## Run end-to-end integration tests

View File

@@ -38,6 +38,7 @@ flask-talisman = "*"
notifications-utils = {editable = true, ref = "main", git = "https://github.com/GSA/notifications-utils.git"}
coverage = "*"
pytest-playwright = "*"
vulture = "==2.7"
[dev-packages]
isort = "==5.12.0"