-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
45 lines (38 loc) · 2.35 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
install:
poetry install
update:
poetry update
format:
poetry run ruff format allowed/allowed.py
lint:
poetry run bandit allowed/allowed.py
poetry run mypy --ignore-missing-imports allowed/allowed.py
poetry run ruff check allowed/allowed.py
run_tests:
@echo "Tests in poetry environment, WITH ipython and pytype installed"
-@poetry run tests/tests.sh run
@echo "Tests in global environment, WITHOUT ipython or pytype installed"
@echo; echo "sample.py (3.10 no ipython or pytype)"; echo "---"
[email protected] allowed/allowed.py tests/sample.py | diff -w - tests/sample-py.txt | diff -w - tests/sample-py-none-10.txt
@echo; echo "sample.ipynb (3.10 no ipython or pytype)"; echo "---"
[email protected] allowed/allowed.py tests/sample.ipynb | diff -w - tests/sample-nb.txt | diff -w - tests/sample-nb-none-10.txt
@echo; echo "sample.py (3.11 no ipython or pytype)"; echo "---"
[email protected] allowed/allowed.py tests/sample.py | diff -w - tests/sample-py.txt | diff -w - tests/sample-py-none-11.txt
@echo; echo "sample.ipynb (3.11 no ipython or pytype)"; echo "---"
[email protected] allowed/allowed.py tests/sample.ipynb | diff -w - tests/sample-nb.txt | diff -w - tests/sample-nb-none-11.txt
@echo; echo "sample.py (3.12 no ipython or pytype)"; echo "---"
[email protected] allowed/allowed.py tests/sample.py | diff -w - tests/sample-py.txt | diff -w - tests/sample-py-none-12.txt
@echo; echo "sample.ipynb (3.12 no ipython or pytype)"; echo "---"
[email protected] allowed/allowed.py tests/sample.ipynb | diff -w - tests/sample-nb.txt | diff -w - tests/sample-nb-none-12.txt
create_tests:
poetry run tests/tests.sh create
-python3.10 allowed/allowed.py tests/sample.py | diff -w - tests/sample-py.txt > tests/sample-py-none-10.txt
-python3.10 allowed/allowed.py tests/sample.ipynb | diff -w - tests/sample-nb.txt > tests/sample-nb-none-10.txt
-python3.11 allowed/allowed.py tests/sample.py | diff -w - tests/sample-py.txt > tests/sample-py-none-11.txt
-python3.11 allowed/allowed.py tests/sample.ipynb | diff -w - tests/sample-nb.txt > tests/sample-nb-none-11.txt
-python3.12 allowed/allowed.py tests/sample.py | diff -w - tests/sample-py.txt > tests/sample-py-none-12.txt
-python3.12 allowed/allowed.py tests/sample.ipynb | diff -w - tests/sample-nb.txt > tests/sample-nb-none-12.txt
run_m269_tests:
-@poetry run tests/m269_tests.sh run
create_m269_tests:
-@poetry run tests/m269_tests.sh create