-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
56 lines (44 loc) · 1013 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
POETRY_VERSION = 1.1.5
# Env stuff
.PHONY: get-poetry
get-poetry:
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 - --version $(POETRY_VERSION)
.PHONY: build-env
build-env:
python3 -m venv .venv
poetry run pip install --upgrade pip
poetry run poetry install
# Tests
.PHONY: tests
tests:
poetry run pytest --cov=zum --cov-report=term-missing --cov-report=xml tests
# Passive linters
.PHONY: black
black:
poetry run black zum tests --check
.PHONY: flake8
flake8:
poetry run flake8 zum tests
.PHONY: isort
isort:
poetry run isort zum tests --profile=black --check
.PHONY: mypy
mypy:
poetry run mypy zum tests
.PHONY: pylint
pylint:
poetry run pylint zum
# Aggresive linters
.PHONY: black!
black!:
poetry run black zum tests
.PHONY: isort!
isort!:
poetry run isort zum tests --profile=black
# Utilities
.PHONY: bump!
bump!:
sh scripts/bump.sh $(filter-out $@,$(MAKECMDGOALS))
# Receive args (use like `$(filter-out $@,$(MAKECMDGOALS))`)
%:
@: