-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
59 lines (41 loc) · 930 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
55
56
57
58
59
PYTEST_ARGS=
PYTEST_XDIST_NUM_THREADS ?= auto
COLOR ?= auto
.PHONY: setup init
setup init:
pip install -r requirements/ci.txt
pre-commit install
.PHONY: fmt format
fmt format:
ifdef CI_LINT_RUN
pre-commit run --all-files --show-diff-on-failure
else
pre-commit run --all-files
endif
.PHONY: lint
lint: fmt
mypy --show-error-codes --strict src tests
.PHONY: publish-lint
publish-lint:
twine check dist/*
.PHONY: clean
clean:
find . -name '*.egg-info' -exec rm -rf {} +
find . -name '__pycache__' -exec rm -rf {} +
.PHONY: test
test:
pytest tests/unit
.PHONY: test-e2e
test-e2e:
# E2E test are bound by IO, so it's OK to run a lot in parallel
pytest -n 10 tests/e2e -v
.PHONY: docs
docs:
build-tools/cli-help-generator.py CLI.in.md reference/cli.md
.PHONY: docs
check-mixins:
build-tools/check-mixins.py
.PHONY: changelog
changelog:
@echo Do not forget to update src/apolo_flow/__init__.py
towncrier