This repository was archived by the owner on Jul 3, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (46 loc) · 1.18 KB
/
Makefile
File metadata and controls
56 lines (46 loc) · 1.18 KB
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
49
50
51
52
53
54
55
56
all:
@echo
@echo "Available targets"
@echo ""
@echo "build -- build python package"
@echo ""
@echo "pypi -- upload package to pypi"
@echo ""
@echo "test -- execute test suite"
@echo ""
@echo "pylint -- run pylint tests"
@echo ""
@echo "pre-commit -- run pre-commit tests"
@echo ""
@echo "pydocstyle -- run pydocstyle tests"
@echo ""
@echo "tox -- run tox tests"
@echo ""
@echo "coverage -- create coverage report"
@echo ""
@echo "clean -- cleanup working directory"
test:
pytest
build:
@python3 setup.py sdist
@python3 setup.py egg_info
pypi:
@rm -f dist/*
@python setup.py sdist
@twine upload dist/*
pylint:
@pylint --jobs=0 --disable=duplicate-code python_freeathome_local *.py
# @pylint --jobs=0 --disable=protected-access,abstract-class-instantiated tests/*
pre-commit:
@pre-commit run --all-files
pydocstyle:
@pydocstyle python_freeathome_local tests/*.py tests/*.py *.py
tox:
@tox
coverage:
pytest --cov-report html --cov python_freeathome_local --verbose
clean:
-rm -rf build dist python_freeathome_local.egg-info
-rm -rf .tox
-rm -rf .coverage htmlcov
.PHONY: test build clean