-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
45 lines (38 loc) · 1019 Bytes
/
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
.PHONY: check format mypy test test_module test_configs test_integration
check:
black . --diff || exit 1
black configs --diff || exit 1
isort . --diff || exit 1
format:
black .
black configs
isort .
mypy:
mypy --no-site-packages \
--ignore-missing-imports \
--follow-imports normal \
--allow-redefinition \
--warn-redundant-casts \
--warn-return-any \
--no-implicit-optional \
--show-column-numbers \
--warn-unreachable \
mlprogram/**/*.py test/**/*.py || exit 1
# --warn-unused-ignores
# --disallow-any-expr
# --disallow-any-decorated
# --disallow-any-explicit
# --disallow-any-generics
# --disallow-untyped-calls
# --disallow-untyped-defs
# --disallow-subclassing-any
# --disallow-untyped-decorators
# --disallow-any-unimported
# --check-untyped-defs
test: test_module test_configs test_integration
test_module:
pytest test/mlprogram || exit 1
test_configs:
pytest test/configs || exit 1
test_integration:
pytest -s -vv test_integration || exit 1