notify-api-386 scan projects for code complexity

This commit is contained in:
Kenneth Kehl
2023-08-07 10:41:07 -07:00
parent 1a1ca0a7c9
commit 1ddc821dd1
2 changed files with 11 additions and 0 deletions

View File

@@ -52,6 +52,16 @@ py-lint: ## Run python linting scanners
pipenv run flake8 .
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
py-test: export NEW_RELIC_ENVIRONMENT=test
py-test: ## Run python unit tests