-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
116 lines (70 loc) · 1.49 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
.PHONY: \
dev \
clean \
unit \
integration \
tests \
linter_src \
linter_tests \
linter \
linter_check_src \
linter_check_tests \
linter_check \
types_src \
types_tests \
types \
format_src \
format_tests \
format \
format_check_src \
format_check_tests \
format_check \
all: format_check linter_check types tests
install:
pip install .
install-dev:
pip install '.[dev]'
install-edev:
pip install -Ue '.[dev]'
clean:
-rm -f .coverage
-rm -f coverage.xml
-rm -rf `find . -type d -name htmlcov`
-rm -rf `find . -type d -name *.log`
-rm -rf `find . -type d -name .pytest_cache`
-rm -rf `find . -type d -name .ruff_cache`
-rm -rf `find . -type d -name __pycache__`
-rm -rf `find . -type d -name .mypy_cache`
-rm -rf `find . -type d -name '*.egg-info'`
-rm -f `find . -type f -name '*.py[co]'`
-rm -rf build dist
unit:
pytest tests/unit
integration:
pytest tests/integration
tests: unit integration
linter_src:
ruff ./src/
linter_tests:
ruff ./tests/
linter: linter_src linter_tests
linter_check_src:
ruff check ./src/
linter_check_tests:
ruff check ./tests/
linter_check: linter_check_src linter_check_tests
types_src:
pyright ./src/
types_tests:
pyright ./tests/
types: types_src types_tests
format_src:
ruff format ./src/
format_tests:
ruff format ./tests/
format: format_src format_tests
format_check_src:
ruff format --check ./src/
format_check_tests:
ruff format --check ./tests/
format_check: format_check_src format_check_tests