-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (26 loc) · 668 Bytes
/
Makefile
File metadata and controls
44 lines (26 loc) · 668 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
PYTHON ?= python3
POETRY ?= poetry
.PHONY: all
all: format_check type_check lint_check test
.PHONY: test
test:
$(POETRY) run $(PYTHON) -m unittest discover -s tests
.PHONY: format_check
format_check:
$(POETRY) run yapf --recursive --diff basic_iter tests
.PHONY: type_check
type_check:
$(POETRY) run mypy --strict basic_iter
.PHONY: lint_check
lint_check:
$(POETRY) run pylint --recursive=yes basic_iter tests
.PHONY: doc
doc:
$(POETRY) run sphinx-apidoc -f -o docs/source basic_iter
$(POETRY) run $(MAKE) html -C docs
.PHONY: format
format:
$(POETRY) run yapf --recursive --in-place basic_iter tests
.PHONY: clean
clean:
$(RM) -r docs/build