| test_deps: |
| python -m pip install .[test] |
| |
| lint: test_deps |
| flake8 $$(python setup.py --name) |
| for script in scripts/*; do if grep -q python $$script; then flake8 $$script; fi; done |
| |
| test: lint test_deps |
| coverage run --source=argcomplete --omit=argcomplete/my_shlex.py ./test/test.py -v |
| |
| init_docs: |
| cd docs; sphinx-quickstart |
| |
| docs: |
| sphinx-build docs docs/html |
| |
| install: clean |
| pip install wheel |
| python setup.py bdist_wheel |
| pip install --upgrade dist/*.whl |
| |
| clean: |
| -rm -rf build dist |
| -rm -rf *.egg-info |
| |
| .PHONY: test test_deps docs install clean lint lint_deps |
| |
| include common.mk |