forked from sportorg/pysport
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
38 lines (31 loc) · 906 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
BIN ?= .venv/bin/
CODE = sportrog
ALL_CODE = sportrog tests
.PHONY: run
run:
$(BIN)python SportOrg.pyw
.PHONY: venv
venv:
python -m venv .venv
$(BIN)pip install poetry
$(BIN)poetry install
.PHONY: update
update:
$(BIN)poetry update
.PHONY: test
test:
$(BIN)pytest --verbosity=2 --showlocals --strict --log-level=DEBUG $(args)
.PHONY: lint
lint:
$(BIN)flake8 --jobs 4 --statistics --show-source $(ALL_CODE)
$(BIN)pylint --jobs 1 --rcfile=setup.cfg $(CODE)
$(BIN)black --skip-string-normalization --line-length=88 --check $(ALL_CODE)
$(BIN)pytest --dead-fixtures --dup-fixtures
$(BIN)mypy $(ALL_CODE)
$(BIN)mkdocs build -s
.PHONY: format
format:
$(BIN)autoflake --recursive --in-place --remove-all-unused-imports $(ALL_CODE)
$(BIN)isort --apply --recursive $(ALL_CODE)
$(BIN)black --skip-string-normalization --line-length=88 $(ALL_CODE)
$(BIN)unify --in-place --recursive $(ALL_CODE)