-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
48 lines (32 loc) · 884 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
36
37
38
39
40
41
42
43
44
45
46
47
48
all: install
black:
black lib/dehinter/*.py
import-sort:
isort lib/dehinter/*.py
format: import-sort black
clean:
- rm dist/*.whl dist/*.tar.gz dist/*.zip
dist-build: clean
python3 setup.py sdist bdist_wheel
dist-push:
twine upload dist/*.whl dist/*.tar.gz
install:
pip3 install --ignore-installed -r requirements.txt .
install-dev:
pip3 install --ignore-installed -r requirements.txt -e ".[dev]"
install-user:
pip3 install --ignore-installed --user .
test: test-lint test-type-check test-unit
test-coverage:
coverage run --source dehinter -m py.test
coverage report -m
# coverage html
test-lint:
flake8 --ignore=E501,W50 lib/dehinter
test-type-check:
mypy lib/dehinter
test-unit:
tox
uninstall:
pip3 uninstall --yes dehinter
.PHONY: all black clean dist-build dist-push install install-dev install-user test test-lint test-type-check test-unit uninstall