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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
.DEFAULT_GOAL := all
isort = isort --float-to-top qcengine
black = black qcengine
autoflake = autoflake -ir --remove-all-unused-imports --ignore-init-module-imports --remove-unused-variables --exclude="**/tests/**" qcengine
.PHONY: install
install:
pip install -e .
.PHONY: format
format:
# $(autoflake)
# $(isort)
$(black)
.PHONY: lint
lint:
$(isort) --check-only
$(black) --check
.PHONY: check-dist
check-dist:
python setup.py check -ms
python setup.py sdist
twine check dist/*
.PHONY: mypy
mypy:
mypy qcengine
.PHONY: test
test:
pytest -v --cov=qcengine/
.PHONY: clean
clean:
rm -rf `find . -name __pycache__`
rm -f `find . -type f -name '*.py[co]' `
rm -f `find . -type f -name '*~' `
rm -f `find . -type f -name '.*~' `
rm -rf .cache
rm -rf .pytest_cache
rm -rf .mypy_cache
rm -rf htmlcov
rm -rf *.egg-info
rm -f .coverage
rm -f .coverage.*
rm -rf build
rm -rf dist
rm -f qcengine/*.c qcengine/*.so
python setup.py clean
|