-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
55 lines (44 loc) · 1005 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
#* Installation
.PHONY: install
install:
python setup.py install
.PHONY: develop
develop:
python setup.py develop
.PHONY: pre
pre:
pre-commit run -a
.PHONY: pre-install
pre-install:
pre-commit install
#* Formatters
.PHONY: codestyle
codestyle:
isort --settings-path pyproject.toml ./
black --config pyproject.toml ./
.PHONY: formatting
formatting: codestyle
#* Linting
.PHONY: test
test:
pytest -c pyproject.toml --cov-report=html --cov=imzy tests/
coverage-badge -o assets/images/coverage.svg -f
.PHONY: check-codestyle
check-codestyle:
isort --diff --check-only --settings-path pyproject.toml ./
black --diff --check --config pyproject.toml ./
darglint --verbosity 2 imzy tests
.PHONY: mypy
mypy:
mypy --config-file pyproject.toml ./
.PHONY: check-safety
check-safety:
safety check --full-report
bandit -ll --recursive imzy tests
.PHONY: lint
lint: test check-codestyle mypy check-safety
.PHONY: untrack
untrack:
git rm -r --cached .
git add .
git commit -m ".gitignore fix"