generated from k-washi/ml-exp-env
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (43 loc) · 807 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
46
47
48
49
50
51
52
53
54
.PHONY: black-check
black-check:
poetry run black --check src tests
.PHONY: black
black:
poetry run black src tests
.PHONY: flake8
flake8:
poetry run flake8 src tests
.PHONY: isort-check
isort-check:
poetry run isort --check-only src tests
.PHONY: isort
isort:
poetry run isort src tests
.PHONY: mdformat
mdformat:
poetry run mdformat *.md
.PHONY: mdformat-check
mdformat-check:
poetry run mdformat --check *.md
.PHONY: mypy
mypy:
poetry run mypy src
.PHONY: test
test:
poetry run pytest tests -s --cov=src --cov-report term-missing --durations 5
.PHONY: format
format:
$(MAKE) black
$(MAKE) isort
$(MAKE) mdformat
.PHONY: lint
lint:
$(MAKE) black-check
$(MAKE) isort-check
$(MAKE) mdformat-check
$(MAKE) flake8
$(MAKE) mypy
.PHONY: test-all
test-all:
$(MAKE) lint
$(MAKE) test