mirror of
https://github.com/GSA/notifications-api.git
synced 2026-05-20 00:30:41 -04:00
Merge pull request #400 from GSA/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:
|
||||
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
|
||||
run-flask: ## Run flask
|
||||
pipenv run newrelic-admin run-program flask run -p 6011 --host=0.0.0.0
|
||||
|
||||
Reference in New Issue
Block a user