Merge pull request #400 from GSA/notify-api-386

Scan projects for code complexity
This commit is contained in:
Steven Reilly
2023-08-14 13:50:26 -04:00
committed by GitHub
2 changed files with 11 additions and 0 deletions

View File

@@ -24,6 +24,16 @@ bootstrap-with-docker: ## Build the image to run the app in Docker
run-procfile: run-procfile:
pipenv run honcho start -f Procfile.dev 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 C, D or F in radon ***"
pipenv run radon cc ./app -a -nc
.PHONY: run-flask .PHONY: run-flask
run-flask: ## Run flask run-flask: ## Run flask
pipenv run newrelic-admin run-program flask run -p 6011 --host=0.0.0.0 pipenv run newrelic-admin run-program flask run -p 6011 --host=0.0.0.0

View File

@@ -53,6 +53,7 @@ oscrypto = "==1.3.0"
psycopg2-binary = "==2.9.3" psycopg2-binary = "==2.9.3"
pyjwt = "==2.8.0" pyjwt = "==2.8.0"
python-dotenv = "==1.0.0" python-dotenv = "==1.0.0"
radon = "==6.0.1"
sqlalchemy = "==1.4.40" sqlalchemy = "==1.4.40"
werkzeug = "~=2.3" werkzeug = "~=2.3"
# gds metrics packages # gds metrics packages