notify-api-386 scan projects for code complexity

This commit is contained in:
Kenneth Kehl
2023-08-07 10:11:24 -07:00
parent e79687c4fa
commit aef5317af8
2 changed files with 12 additions and 0 deletions

View File

@@ -24,6 +24,16 @@ bootstrap-with-docker: ## Build the image to run the app in Docker
run-procfile:
pipenv run honcho start -f Procfile.dev
.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: run-flask
run-flask: ## Run flask
pipenv run newrelic-admin run-program flask run -p 6011 --host=0.0.0.0