-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (23 loc) · 784 Bytes
/
Makefile
File metadata and controls
30 lines (23 loc) · 784 Bytes
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
## help: print this help message and exit
help: Makefile
@echo ''
@sed -n 's/^## //p' Makefile
@echo ''
## test: execute test suite
test:
COLUMNS=150 pytest --cov=pytaxonkit --doctest-modules pytaxonkit.py conftest.py
testci:
COLUMNS=150 pytest --verbose --cov=pytaxonkit --doctest-modules pytaxonkit.py conftest.py
test4:
COLUMNS=150 pytest -n 4 --cov=pytaxonkit --doctest-modules pytaxonkit.py conftest.py
## style: check code style
style:
black --line-length=99 --check pytaxonkit.py setup.py
## format: autoformat Python code
format:
black --line-length=99 pytaxonkit.py setup.py
## hooks: install development hooks
hooks:
echo "set -eo pipefail" > .git/hooks/pre-commit
echo 'make style' >> .git/hooks/pre-commit
chmod 755 .git/hooks/pre-commit