-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (34 loc) · 885 Bytes
/
Copy pathMakefile
File metadata and controls
43 lines (34 loc) · 885 Bytes
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
# ==========================================================
include Makefile.inc
# ==========================================================
MYPY_INSTALL := \
types-requests \
types-python-dateutil redis
prep: clean format check mypy
clean:
rm -rf tmp/* 1 2 out *.out *.1 *.2
rm -rf $(VENV)
rm -f ./rl-secure-list-*.txt
rm -f ./rl-secure-status-*.txt
format:
ruff format $(PY_FILES)
check:
ruff check $(PY_FILES)
mypy:
$(COMMON_VENV) \
$(PIP_INSTALL) -r requirements.txt mypy $(MYPY_INSTALL); \
mypy \
--strict \
--no-incremental \
$(PY_FILES) | tee $@.out
# this step creates or updates the toml file
build:
./bin/build.sh
./bin/testLocalWhl.sh 2>tmp/$@.22 | tee tmp/$@.1
./bin/test.sh 2>tmp/$@.2 | tee -a tmp/$@.1
test:
make -f Makefile.tests
t2:
$(COMMON_VENV) \
$(PIP_INSTALL) -r requirements.txt; \
$(MIN_PYTHON_VERSION) t2.py 2>$@.2 | tee $@.1