forked from haralyzer/haralyzer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (26 loc) · 737 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
.PHONY: clean clean-build clean-pyc test docs
clean: clean-build clean-pyc
clean-build:
$(RM) -r build/
$(RM) -r dist/
$(RM) -r *.egg-info
clean-pyc:
find . -name '*.pyc' -exec $(RM) {} +
find . -name '*.pyo' -exec $(RM) {} +
find . -name '*~' -exec $(RM) {} +
docs:
sphinx-apidoc --force -o docs/ haralyzer
$(MAKE) -C docs clean
$(MAKE) -C docs html
test:
py.test --cov haralyzer tests/ -vv
lint:
black --check haralyzer
pylint --disable=E1101,C0103,W0511,R0901 haralyzer
flake8 --max-line-length 89 --statistics --show-source --count haralyzer
bandit -r haralyzer
check-dist:
pip install -U twine wheel setuptools --quiet
python setup.py egg_info
python setup.py sdist bdist_wheel
twine check --strict dist/*