-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (20 loc) · 747 Bytes
/
Copy pathMakefile
File metadata and controls
30 lines (20 loc) · 747 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
clean:
rm -rf .cache/ .mypy_cache/ __project-name__.egg-info/
find ./__project-name__ -name '__pycache__' -type d | xargs -I@ rm -rf @
find ./tests -name '__pycache__' -type d | xargs -I@ rm -rf @
dev_install:
[ ! -z "${VIRTUAL_ENV}" ] # Check for virtualenv.
pip install -r requirements.txt
pip install --editable .
install:
pip install .
check:
mypy --ignore-missing-imports --strict-optional __project-name__
pytest tests/
# To be used on CIs.
ci_mypy:
docker run --rm -v $(PWD):/app -w /app \
grktsh/mypy --ignore-missing-imports --strict-optional __project-name__
docker run --rm -v $(PWD):/app -w /app --entrypoint sh \
grktsh/mypy -c "rm -rf .mypy_cache"
.PHONY: dev_install dev_install install check ci_mypy