-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
52 lines (41 loc) · 949 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
POETRY_VERSION = 1.2.1
# Env stuff
.PHONY: get-poetry
get-poetry:
curl -sSL https://install.python-poetry.org | 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 -rP --cov=fintoc --cov-report=term-missing --cov-report=xml tests
# Passive linters
.PHONY: black
black:
poetry run black fintoc tests --check
.PHONY: flake8
flake8:
poetry run flake8 fintoc tests
.PHONY: isort
isort:
poetry run isort fintoc tests --profile=black --check
.PHONY: pylint
pylint:
poetry run pylint fintoc
# Aggresive linters
.PHONY: black!
black!:
poetry run black fintoc tests
.PHONY: isort!
isort!:
poetry run isort fintoc tests --profile=black
# Utilities
.PHONY: bump!
bump!:
sh scripts/bump.sh $(filter-out $@,$(MAKECMDGOALS))
# Receive args (use like `$(filter-out $@,$(MAKECMDGOALS))`)
%:
@: