-
Notifications
You must be signed in to change notification settings - Fork 8
/
tox.mk
84 lines (54 loc) · 1.46 KB
/
tox.mk
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
.PHONY: tox lint lint_flake8 lint_pylint lint_bandit lint_black
TOX_COMMAND = poetry run tox
tox:
$(TOX_COMMAND)
lint_flake8:
$(TOX_COMMAND) -e flake8
lint_pylint:
$(TOX_COMMAND) -e pylint
lint_bandit:
$(TOX_COMMAND) -e bandit
lint_mypy:
$(TOX_COMMAND) -e mypy
lint_black:
$(TOX_COMMAND) -e black
lint: lint_flake8 lint_pylint lint_bandit lint_mypy lint_black
.PHONY: lintenv_flake8 lintenv_pylint lintenv_bandit lintenv_mypy lintenv_black
lintenv_flake8:
$(TOX_COMMAND) -e flake8 --notest
lintenv_pylint:
$(TOX_COMMAND) -e pylint --notest
lintenv_bandit:
$(TOX_COMMAND) -e bandit --notest
lintenv_mypy:
$(TOX_COMMAND) -e mypy --notest
lintenv_black:
$(TOX_COMMAND) -e black --notest
.PHONY: test_py3.10 test_py3.11 test_py3.12
test_py3.10:
$(TOX_COMMAND) -e py310
test_py3.11:
$(TOX_COMMAND) -e py311
test_py3.12:
$(TOX_COMMAND) -e py312
.PHONY: testenv_py3.10 testenv_py3.11 testenv_py3.12
testenv_py3.10:
$(TOX_COMMAND) -e py310 --notest
testenv_py3.11:
$(TOX_COMMAND) -e py311 --notest
testenv_py3.12:
$(TOX_COMMAND) -e py312 --notest
.PHONY: bench_py3.10 bench_py3.11 bench_py3.12
bench_py3.10:
$(TOX_COMMAND) -e py310-bench
bench_py3.11:
$(TOX_COMMAND) -e py311-bench
bench_py3.12:
$(TOX_COMMAND) -e py312-bench
.PHONY: benchenv_py3.10 benchenv_py3.11 benchenv_py3.12
benchenv_py3.10:
$(TOX_COMMAND) -e py310-bench --notest
benchenv_py3.11:
$(TOX_COMMAND) -e py311-bench --notest
benchenv_py3.12:
$(TOX_COMMAND) -e py312-bench --notest