Skip to content

Commit bbff13b

Browse files
author
Tony Crisci
committed
add makefile
1 parent 7d9ef7c commit bbff13b

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

Makefile

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
.PHONY: test format lint all clean publish docs coverage
2+
.DEFAULT_GOAL := all
3+
4+
source_dirs = i3ipc test examples
5+
6+
lint:
7+
flake8 $(source_dirs)
8+
9+
format:
10+
yapf -rip $(source_dirs)
11+
12+
test:
13+
./run-tests.py
14+
15+
clean:
16+
rm -rf dist i3ipc.egg-info build docs/_build
17+
rm -rf `find -type d -name __pycache__`
18+
19+
publish:
20+
python3 setup.py sdist bdist_wheel
21+
python3 -m twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
22+
23+
docs:
24+
sphinx-build docs docs/_build/html
25+
26+
livedocs:
27+
sphinx-autobuild docs docs/_build/html --watch i3ipc -i '*swp' -i '*~'
28+
29+
all: format lint test

0 commit comments

Comments
 (0)