-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
59 lines (43 loc) · 1014 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
57
58
59
#
# Package Management
#
.PHONY: cli_install install upgrade_dependencies
install:
poetry install --no-dev
dev_install:
poetry install
pre-commit install
pre-commit install --hook-type commit-msg
upgrade_dependencies:
poetry upgrade
#
# Code Checks
#
.PHONY: pre-commit check coverage
pre-commit:
pre-commit run -a
coverage:
poetry run pytest --alembic-folder=alembic --cov=pxsearch --cov-report term --cov-report html:reports/coverage-integration --cov-report term:skip-covered
check: pre-commit coverage
#
# Extended Reports
#
.PHONY: smells security complexity check-advanced check-extended
smells:
semgrep --config=p/r2c-ci --config=p/flask
security:
bandit -r pxsearch
complexity:
wily build pxsearch
wily report pxsearch
doc-style:
pydocstyle pxsearch
check-advanced: smells security
check-picky: complexity doc-style
check-extended: check check-advanced check-picky
#
# Code Checks auto-fix
#
.PHONY: black
black:
python -m black -l79 -tpy38 alembic pxsearch tests *.py