1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
.PHONY : develop build clean clean_pyc doc lint-diff black test-scripts
all: develop
clean:
-python setup.py clean
clean_pyc:
-find . -name '*.py[co]' -exec rm {} \;
build: clean_pyc
python setup.py build_ext
lint-diff:
git diff upstream/main --name-only -- "*.py" | xargs flake8
black:
black .
develop: build
python -m pip install --no-build-isolation -e .
doc:
-rm -rf doc/build doc/source/generated
cd doc; \
python make.py clean; \
python make.py html
test-scripts:
pytest scripts
|