-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
56 lines (47 loc) · 1.02 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
.all: nox
.DEFAULT_GOAL := .all
.venv-tools:
rm -rf venv
python -m venv .venv-tools
.venv-tools/bin/pip install poetry==1.4.2 nox==2023.4.22 nox-poetry==1.0.2 pip==23.1.2 || (rm -rf venv && exit 1)
.PHONY: nox
nox: .venv-tools
bash -c "\
source .venv-tools/bin/activate \
&& .venv-tools/bin/nox \
"
.PHONY: nox-tests
nox-tests: .venv-tools
bash -c "\
source .venv-tools/bin/activate \
&& .venv-tools/bin/nox -s tests \
"
.PHONY: nox-example-tests
nox-example-tests: .venv-tools
bash -c "\
source .venv-tools/bin/activate \
&& .venv-tools/bin/nox -s example_tests \
"
.PHONY: nox-mypy
nox-mypy: .venv-tools
bash -c "\
source .venv-tools/bin/activate \
&& .venv-tools/bin/nox -s mypy \
"
.PHONY: nox-lint
nox-lint: .venv-tools
bash -c "\
source .venv-tools/bin/activate \
&& .venv-tools/bin/nox -s lint \
"
.PHONY: nox-format
nox-format: .venv-tools
bash -c "\
source .venv-tools/bin/activate \
&& .venv-tools/bin/nox -s format \
"
.PHONY: clean
clean:
rm -rf .venv-tools
rm -rf .nox
rm -rf dist