19 lines
438 B
Makefile
19 lines
438 B
Makefile
checkfiles = alice/ tests/
|
|
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 install -r requirements-dev.txt
|
|
|
|
style: deps
|
|
isort -rc $(checkfiles)
|
|
black $(black_opts) $(checkfiles)
|