-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathMakefile
52 lines (40 loc) · 879 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
# Set up an environment
.PHONEY: setup
setup: setup-python setup-pre-commit
.PHONE: setup-python
setup-python:
bash ./dev/setup.sh
.PHONE: setup-pre-commit
setup-pre-commit:
pre-commit install
# Check all the coding style.
.PHONY: lint
lint: lint-shell lint-python
# Check the coding style for the shell scripts.
.PHONY: lint-shell
lint-shell:
shellcheck ./dev/*.sh
# Check the coding style for the python files.
.PHONY: lint-python
lint-python:
bash ./dev/lint_python.sh
# Format source codes
format: format-python
# Format python codes
format-python:
bash ./dev/format_python.sh
# Run the unit tests.
.PHONEY: test
test:
bash ./dev/test_python.sh
# Build the package
build: clean format test
flit build
clean:
bash ./dev/clean.sh
# Publish to pypi
publish:
bash ./dev/publish.sh "pypi"
# Publish to testpypi
test-publish:
bash ./dev/publish.sh "testpypi"