-
Notifications
You must be signed in to change notification settings - Fork 22
/
Makefile
32 lines (24 loc) · 644 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
.PHONY: all test install release coverage lint format style-check
all:
@echo "Available targets: install, test, release, coverage, lint, format, style-check"
install:
python -m pip install -U -e .[develop]
pre-commit install
gitlint install-hook
test:
python -m unittest
release:
git push --tags origin master
coverage:
coverage erase
coverage run -m unittest
coverage report
coverage html
lint:
pre-commit run --all-files flake8
format:
pre-commit run --all-files black
pre-commit run --all-files isort
pre-commit run --all-files end-of-file-fixer
pre-commit run --all-files trailing-whitespace
style-check: format lint