forked from canonical/snapcraft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
64 lines (48 loc) · 1.19 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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-isort
test-isort:
tox run -e lint-isort
.PHONY: test-mypy
test-mypy:
tox run -e lint-mypy
.PHONY: test-pydocstyle
test-pydocstyle:
tox run -e lint-docstyle
.PHONY: test-pylint
test-pylint:
tox run -e lint-pylint
.PHONY: test-pyright
test-pyright:
tox run -e lint-pyright
.PHONY: test-ruff
test-ruff:
ruff --config snapcraft_legacy/ruff.toml $(SOURCES_LEGACY)
ruff $(SOURCES)
.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-isort test-mypy test-pydocstyle test-pyright test-pylint test-shellcheck
.PHONY: lint
lint: tests-static