-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
47 lines (39 loc) · 1 KB
/
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
.PHONY: lint
lint:
pylint setup.py
pylint src/dbus_client_gen --disable=duplicate-code
pylint tests
.PHONY: test
test:
python3 -m unittest discover --verbose tests
.PHONY: coverage
coverage:
coverage --version
coverage run --timid --branch -m unittest discover tests
coverage report -m --fail-under=100 --show-missing --include="./src/*"
.PHONY: fmt
fmt:
isort setup.py src tests
black .
.PHONY: fmt-travis
fmt-travis:
isort --diff --check-only setup.py src tests
black . --check
PYREVERSE_OPTS = --output=pdf
.PHONY: view
view:
-rm -Rf _pyreverse
mkdir _pyreverse
PYTHONPATH=src pyreverse ${PYREVERSE_OPTS} --project="dbus-client-gen" src/dbus_client_gen
mv classes_dbus-client-gen.pdf _pyreverse
mv packages_dbus-client-gen.pdf _pyreverse
.PHONY: yamllint
yamllint:
yamllint --strict .github/workflows/main.yml
.PHONY: package
package:
(umask 0022; python -m build; python -m twine check --strict ./dist/*)
.PHONY: legacy-package
legacy-package:
python3 setup.py build
python3 setup.py install