-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
44 lines (35 loc) · 855 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
init: update install pre-commit
install:
poetry install
update:
poetry update
build:
poetry build
pre-commit:
poetry run pre-commit install
mypy:
poetry run mypy macos_tags
test:
poetry run pytest --exitfirst tests/
poetry run pytest --cov --cov-fail-under=100
format:
poetry run black macos_tags tests
poetry run isort -y
clean:
rm -fr build/
rm -fr dist/
rm -fr .eggs/
find . -name '*.egg-info' -exec rm -fr {} +
find . -name '*.egg' -exec rm -f {} +
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +
rm -f .coverage
rm -fr .pytest_cache
rm -fr .mypy_cache
ci:
poetry run black --check macos_tags tests/
poetry run mypy macos_tags
poetry run pytest --exitfirst tests/
poetry run pytest --cov --cov-fail-under=100