-
Notifications
You must be signed in to change notification settings - Fork 38
/
Makefile
35 lines (29 loc) · 838 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
33
34
35
install:
cd src/ && pip install -e .
tests: install
coverage run --rcfile=.coveragerc -m pytest --verbose --showlocals --pastebin=all tests --disable-warnings && \
coverage report --precision=3 --sort=cover --skip-empty --show-missing && \
coverage html --precision=3 --skip-empty -d coverage/html/ && \
coverage xml -o coverage/coverage.xml
refactor:
black docs/
isort docs/
autoflake --in-place \
--recursive \
--remove-unused-variables \
--remove-duplicate-keys \
--remove-all-unused-imports \
--ignore-init-module-imports \
src/ tests/ && \
black src/ tests/ && \
isort src/ tests/
lint:
autoflake --in-place --recursive src/ --check && \
black src/ --check && \
isort src/ --check-only
upload:
pip install twine
cd src/ && python setup.py upload
doc: install
cd docs/ && \
make html -e