-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
48 lines (33 loc) · 1.11 KB
/
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
.PHONY: check venv test test-cov test-prop-ci analysis install format codestyle mypy run clean distclean prepare
all: check venv test
check:
if [ ! `which python3` ] ; then echo Please install Python 3.10 or greater ; exit 1; fi
if [ `python3 -V | cut -d. -f2` -lt 10 ]; then echo Please install Python 3.10 or greater; exit 1; fi
if [ ! `which pipenv` ] ; then echo Please install pipenv ; exit 1; fi
venv:
$([ which pipenv ] || pip install pipenv)
pipenv install -d --python $(shell which python3)
prepare: codestyle format test mypy
test:
pipenv run py.test
test-cov:
pipenv run py.test --cov=siebenapp --cov-report=html
test-prop-ci: export HYPOTHESIS_PROFILE=ci
test-prop-ci:
pipenv run py.test -k test_properties
analysis:
pipenv run radon cc -nc -s siebenapp/*.py
install:
pipenv run python3 setup.py install
codestyle:
find siebenapp -type f -name \*.py | grep -v ui | xargs pipenv run pyupgrade --py310-plus
format:
pipenv run black sieben siebenapp clieben sieben-manage
mypy:
pipenv run mypy --pretty -p siebenapp
run:
pipenv run ./sieben
clean:
find . -name \*.pyc -delete
distclean:
pipenv --rm