aboutsummaryrefslogtreecommitdiffstats
path: root/python/Makefile
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-10-26 12:22:04 -0700
committerBryan Newbold <bnewbold@archive.org>2021-10-26 12:22:04 -0700
commitf67d870ba4ca9cecd0b75f106335997c813e9df4 (patch)
tree2e78606c76b02bb9d55ffe5be86b9dc0c06ebad1 /python/Makefile
parent1d141195c18f7827ba1146a1fdaead2f353f85a8 (diff)
downloadsandcrawler-f67d870ba4ca9cecd0b75f106335997c813e9df4.tar.gz
sandcrawler-f67d870ba4ca9cecd0b75f106335997c813e9df4.zip
add pyproject.toml (for isort and yapf config), and update 'lint' and 'fmt' make targets
Diffstat (limited to 'python/Makefile')
-rw-r--r--python/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/python/Makefile b/python/Makefile
index 4ef99f5..d6eafac 100644
--- a/python/Makefile
+++ b/python/Makefile
@@ -14,14 +14,15 @@ deps: ## Install dependencies using pipenv
.PHONY: lint
lint: ## Run lints (eg, flake8, mypy)
- #pipenv run flake8 . --exit-zero
- pipenv run flake8 . --select=E9,F63,F7,F82 --exit-zero
+ pipenv run flake8 . --exit-zero
+ pipenv run isort -q -c .
pipenv run mypy *.py sandcrawler/ tests/ --ignore-missing-imports
pipenv run pylint --rcfile=.pylintrc -E --jobs=4 sandcrawler tests/*.py *.py
.PHONY: fmt
fmt: ## Run code formating on all source code
- pipenv run black *.py sandcrawler/ tests/
+ pipenv run isort --atomic .
+ pipenv run yapf -p -i -r sandcrawler tests scripts *.py
.PHONY: test
test: ## Run all tests and lints