-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (42 loc) · 926 Bytes
/
Makefile
File metadata and controls
52 lines (42 loc) · 926 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Set up an environment
.PHONY: setup
setup: setup-python setup-pre-commit
# Set up the python environment.
.PHONY: setup-python
setup-python:
bash ./dev/setup.sh --deps "development"
# Set up the pre-commit hooks.
.PHONY: setup-pre-commit
setup-pre-commit:
pre-commit install
# Check all the coding style.
.PHONY: lint
lint: run-pre-commit
# Run the pre-commit hooks.
.PHONY: run-pre-commit
run-pre-commit:
pre-commit run --all-files
# Update the pre-commit hooks.
.PHONY: update-pre-commit
update-pre-commit:
pre-commit autoupdate
# Run the unit tests.
.PHONY: test
test:
bash ./dev/test_python.sh
# Build the package
.PHONY: build
build: clean lint test
bash -x ./dev/build.sh
# Clean the environment
.PHONY: clean
clean:
bash ./dev/clean.sh
# Publish to pypi
.PHONY: publish
publish:
bash ./dev/publish.sh "pypi"
# Publish to testpypi
.PHONY: test-publish
test-publish:
bash ./dev/publish.sh "testpypi"