aboutsummaryrefslogtreecommitdiffstats
path: root/python/Makefile
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-01-05 16:10:55 -0800
committerBryan Newbold <bnewbold@robocracy.org>2021-01-05 16:10:55 -0800
commita0b674a3abb21bd00de806307b8ca6e4ab85c6c0 (patch)
tree9dbb84e0c2444087fc16d17cec1378657b29d3dd /python/Makefile
parent033fb23b0ce073993552bdd4d7e2cb59d39157f8 (diff)
downloadfatcat-a0b674a3abb21bd00de806307b8ca6e4ab85c6c0.tar.gz
fatcat-a0b674a3abb21bd00de806307b8ca6e4ab85c6c0.zip
Makefile: rename 'dev' to 'serve'; don't run 'lint' for 'test'
Diffstat (limited to 'python/Makefile')
-rw-r--r--python/Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/python/Makefile b/python/Makefile
index 4c8ff45f..2ac7bc5f 100644
--- a/python/Makefile
+++ b/python/Makefile
@@ -13,12 +13,12 @@ dep: ## Create local virtualenv using pipenv
pipenv install --dev
.PHONY: lint
-lint: ## Run lints (eg, flake8, mypy)
+lint: ## Run lints (eg, flake8)
pipenv run flake8 *.py tests/ fatcat_web/ fatcat_tools/ --select=E9,F63,F7,F82
pipenv run flake8 *.py tests/ fatcat_web/ fatcat_tools/ --exit-zero
-.PHONY: mypy
-mypy: ## Run mypy type checks (not part of regular lint yet)
+.PHONY: lint-mypy
+lint-mypy: ## Run mypy type checks (not part of regular lint yet)
pipenv run mypy *.py fatcat_web/ fatcat_tools/ --ignore-missing-imports
# Not ready for 'black' yet
@@ -27,7 +27,7 @@ mypy: ## Run mypy type checks (not part of regular lint yet)
# pipenv run black *.py fatcat_web/ fatcat_tools/ tests/
.PHONY: test
-test: lint ## Run all tests and lints
+test: ## Run all tests and lints
@curl --silent localhost:9411/v0/changelog > /dev/null || (echo "API not running locally, bailing early from tests" && exit 1)
pipenv run pytest
@@ -39,6 +39,6 @@ coverage: ## Run all tests with coverage
test-cli: ## Run CLI commands. WARNING: may mutate local database
pipenv run ./tests/cli.sh > /dev/null
-.PHONY: dev
-dev: ## Run web service locally, with reloading
+.PHONY: serve
+serve: ## Run web service locally, with reloading
pipenv run ./fatcat_webface.py --debug