mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 10:28:41 -04:00
notify-api-387 scan projects for unused code
This commit is contained in:
@@ -36,6 +36,8 @@ jobs:
|
|||||||
run: pipenv run flake8 .
|
run: pipenv run flake8 .
|
||||||
- name: Check imports alphabetized
|
- name: Check imports alphabetized
|
||||||
run: pipenv run isort --check-only ./app ./tests
|
run: pipenv run isort --check-only ./app ./tests
|
||||||
|
- name: Check dead-code
|
||||||
|
run: make dead-code
|
||||||
- name: Run js lint
|
- name: Run js lint
|
||||||
run: npm run lint
|
run: npm run lint
|
||||||
- name: Run js tests
|
- name: Run js tests
|
||||||
|
|||||||
@@ -59,6 +59,10 @@ py-test: ## Run python unit tests
|
|||||||
pipenv run coverage report --fail-under=96
|
pipenv run coverage report --fail-under=96
|
||||||
pipenv run coverage html -d .coverage_cache
|
pipenv run coverage html -d .coverage_cache
|
||||||
|
|
||||||
|
.PHONY: dead-code
|
||||||
|
dead-code:
|
||||||
|
pipenv run vulture ./app --min-confidence=100
|
||||||
|
|
||||||
.PHONY: e2e-test
|
.PHONY: e2e-test
|
||||||
e2e-test: export NEW_RELIC_ENVIRONMENT=test
|
e2e-test: export NEW_RELIC_ENVIRONMENT=test
|
||||||
e2e-test: ## Run end-to-end integration tests
|
e2e-test: ## Run end-to-end integration tests
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ flask-talisman = "*"
|
|||||||
notifications-utils = {editable = true, ref = "main", git = "https://github.com/GSA/notifications-utils.git"}
|
notifications-utils = {editable = true, ref = "main", git = "https://github.com/GSA/notifications-utils.git"}
|
||||||
coverage = "*"
|
coverage = "*"
|
||||||
pytest-playwright = "*"
|
pytest-playwright = "*"
|
||||||
|
vulture = "==2.7"
|
||||||
|
|
||||||
[dev-packages]
|
[dev-packages]
|
||||||
isort = "==5.12.0"
|
isort = "==5.12.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user