mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 07:46:23 -04:00
Merge pull request #684 from GSA/notify-api-386
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 C, D or F in radon ***"
|
||||||
|
pipenv run radon cc ./app -a -nc
|
||||||
|
|
||||||
.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
|
||||||
|
|||||||
2
Pipfile
2
Pipfile
@@ -37,6 +37,8 @@ newrelic = "*"
|
|||||||
flask-talisman = "*"
|
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 = "*"
|
||||||
|
radon = "==6.0.1"
|
||||||
|
|
||||||
[dev-packages]
|
[dev-packages]
|
||||||
isort = "==5.12.0"
|
isort = "==5.12.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user