-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (29 loc) · 881 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
# K.Karandashev: Largely inspired by the makefile from https://github.com/qmlcode/qmllib
# I made it more lightweight though, giving the developer more leeway on what environment
# to base and test their commit in.
# if in your environment "python" or "pip" are aliases for another command modify these
# lines accordingly.
python=python
pip=pip
all: install
dev-env:
$(pip) install pre-commit
./.git/hooks/commit-msg: dev-env
pre-commit install --hook-type commit-msg
./.git/hooks/pre-commit: dev-env
pre-commit install
conventional-commits: ./.git/hooks/commit-msg
dev-setup: dev-env ./.git/hooks/pre-commit
review: dev-setup
pre-commit run --all-files
test-env:
$(pip) install pytest
test: test-env
$(python) -m pytest -rs ./tests
install:
$(pip) install .
clean:
rm -Rf ./build
rm -Rf ./dist
rm -Rf ./qml2.egg-info
rm -Rf ./tests/test_data/perturbed_qm7