mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 07:35:34 -05:00
notify-api-386 scan projects for code complexity
This commit is contained in:
10
Makefile
10
Makefile
@@ -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 D or F in radon ***"
|
||||||
|
pipenv run radon cc ./app -a -nd
|
||||||
|
|
||||||
.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
|
||||||
|
|||||||
2
Pipfile
2
Pipfile
@@ -52,6 +52,8 @@ notifications-python-client = "==6.3.0"
|
|||||||
oscrypto = "==1.3.0"
|
oscrypto = "==1.3.0"
|
||||||
psycopg2-binary = "==2.9.3"
|
psycopg2-binary = "==2.9.3"
|
||||||
pyjwt = "==2.7.0"
|
pyjwt = "==2.7.0"
|
||||||
|
pylint = "==2.17.5"
|
||||||
|
radon = "==6.0.1"
|
||||||
python-dotenv = "==1.0.0"
|
python-dotenv = "==1.0.0"
|
||||||
sqlalchemy = "==1.4.40"
|
sqlalchemy = "==1.4.40"
|
||||||
werkzeug = "~=2.3"
|
werkzeug = "~=2.3"
|
||||||
|
|||||||
Reference in New Issue
Block a user