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

View File

@@ -52,6 +52,8 @@ notifications-python-client = "==6.3.0"
oscrypto = "==1.3.0"
psycopg2-binary = "==2.9.3"
pyjwt = "==2.7.0"
pylint = "==2.17.5"
radon = "==6.0.1"
python-dotenv = "==1.0.0"
sqlalchemy = "==1.4.40"
werkzeug = "~=2.3"