-
-
Notifications
You must be signed in to change notification settings - Fork 135
/
Copy pathMakefile
32 lines (23 loc) · 757 Bytes
/
Makefile
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
SHELL=/bin/bash
test_deps:
python -m pip install .[test]
lint:
for dir in $$(dirname */__init__.py); do ruff check $$dir; done
for script in scripts/*[^cmd]; do if grep -q python $$script; then ruff check $$script; fi; done
mypy --install-types --non-interactive argcomplete
test:
coverage run --source=argcomplete --omit=argcomplete/packages/_shlex.py ./test/test.py -v
init_docs:
cd docs; sphinx-quickstart
docs:
python -m pip install furo sphinx-copybutton sphinxext-opengraph
sphinx-build docs docs/html
install: clean
python -m pip install build
python -m build
python -m pip install --upgrade $$(echo dist/*.whl)[test]
clean:
-rm -rf build dist
-rm -rf *.egg-info
.PHONY: test_deps lint test docs install clean
include common.mk