mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 14:09:20 -04:00
notify-api-386 scan projects for code complexity
This commit is contained in:
10
Makefile
10
Makefile
@@ -52,6 +52,16 @@ py-lint: ## Run python linting scanners
|
|||||||
pipenv run flake8 .
|
pipenv run flake8 .
|
||||||
pipenv run isort --check-only ./app ./tests
|
pipenv run isort --check-only ./app ./tests
|
||||||
|
|
||||||
|
.PHONY: avg-complexity
|
||||||
|
avg-complexity:
|
||||||
|
echo "*** Shows average complexity in radon of all code ***"
|
||||||
|
pipenv run radon cc ./app -a -na
|
||||||
|
|
||||||
|
.PHONY: too-complex
|
||||||
|
too-complex:
|
||||||
|
echo "*** Shows code that got a rating of D or F in radon ***"
|
||||||
|
pipenv run radon cc ./app -a -nd
|
||||||
|
|
||||||
.PHONY: py-test
|
.PHONY: py-test
|
||||||
py-test: export NEW_RELIC_ENVIRONMENT=test
|
py-test: export NEW_RELIC_ENVIRONMENT=test
|
||||||
py-test: ## Run python unit tests
|
py-test: ## Run python unit tests
|
||||||
|
|||||||
1
Pipfile
1
Pipfile
@@ -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 = "*"
|
||||||
|
radon = "==6.0.1"
|
||||||
|
|
||||||
[dev-packages]
|
[dev-packages]
|
||||||
isort = "==5.12.0"
|
isort = "==5.12.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user