-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (19 loc) · 786 Bytes
/
Makefile
File metadata and controls
26 lines (19 loc) · 786 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
.PHONY: init test lint pretty precommit_install bump_major bump_minor bump_patch
BIN ?= .venv/bin/
CODE = tinvest
venv:
python3 -m venv .venv
poetry install
test:
$(BIN)pytest --verbosity=2 --showlocals --strict --log-level=DEBUG --cov=$(CODE) $(args)
lint:
$(BIN)flake8 --jobs 4 --statistics --show-source $(CODE) tests
$(BIN)pylint --jobs 4 --rcfile=setup.cfg $(CODE)
$(BIN)black --skip-string-normalization --line-length=88 --check $(CODE) tests
$(BIN)pytest --dead-fixtures --dup-fixtures
$(BIN)mypy $(CODE) tests
format:
$(BIN)autoflake --recursive --in-place --remove-all-unused-imports $(CODE)
$(BIN)isort --apply --recursive $(CODE) tests
$(BIN)black --skip-string-normalization --line-length=88 $(CODE) tests
$(BIN)unify --in-place --recursive $(CODE) tests