-
Notifications
You must be signed in to change notification settings - Fork 448
/
Makefile
55 lines (41 loc) · 1013 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
49
50
51
52
53
54
55
SOURCES=setup.py snapcraft tests/*.py tests/unit
SOURCES_LEGACY=snapcraft_legacy tests/legacy
.PHONY: autoformat-black
autoformat-black:
tox run -e format-black
.PHONY: freeze-requirements
freeze-requirements:
tools/freeze-requirements.sh
.PHONY: test-black
test-black:
tox run -e lint-black
.PHONY: test-codespell
test-codespell:
tox run -e lint-codespell
.PHONY: test-mypy
test-mypy:
tox run -e lint-mypy
.PHONY: test-pydocstyle
test-pydocstyle:
tox run -e lint-docstyle
.PHONY: test-pyright
test-pyright:
tox run -e lint-pyright
.PHONY: test-ruff
test-ruff:
ruff check
.PHONY: test-shellcheck
test-shellcheck:
tox run -e lint-shellcheck
.PHONY: test-legacy-units
test-legacy-units:
tox run -e test-legacy-py310
.PHONY: test-units
test-units: test-legacy-units
tox run -e test-py310
.PHONY: tests
tests: tests-static test-units
.PHONY: tests-static
tests-static: test-black test-codespell test-ruff test-mypy test-pydocstyle test-pyright test-shellcheck
.PHONY: lint
lint: tests-static