This commit is contained in:
long2ice
2020-05-12 19:33:21 +08:00
parent 75e7a46e85
commit 4e7e1626aa
11 changed files with 318 additions and 121 deletions

19
Makefile Normal file
View File

@@ -0,0 +1,19 @@
checkfiles = alice/ examples/ tests/ conftest.py
black_opts = -l 100 -t py38
py_warn = PYTHONDEVMODE=1
help:
@echo "Alice development makefile"
@echo
@echo "usage: make <target>"
@echo "Targets:"
@echo " test Runs all tests"
@echo " style Auto-formats the code"
deps:
@which pip-sync > /dev/null || pip install -q pip-tools
@pip-sync tests/requirements.txt
style: deps
isort -rc $(checkfiles)
black $(black_opts) $(checkfiles)