forked from SFTtech/abrechnung
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (39 loc) · 787 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
.PHONY: test
test:
pytest tests --doctest-modules --cov=abrechnung
.PHONY: format
format:
isort .
black .
cd frontend && npx prettier --write . && cd ..
.PHONY: check-format
check-format:
isort --check-only .
black --check .
.PHONY: check-format-frontend
check-format-frontend:
cd frontend && npx prettier --check . && cd ..
.PHONY: lint
lint: pylint mypy
.PHONY: pylint
pylint:
pylint ./**/*.py
.PHONY: eslint
eslint:
cd frontend && npx nx lint && cd ..
.PHONY: mypy
mypy:
mypy .
.PHONY: package
package:
flit build
.PHONY: docs
docs:
$(MAKE) -C docs html
.PHONY: serve-docs
serve-docs:
python3 -m http.server -d docs/_build/html 8888
.PHONY: generate-openapi
generate-openapi:
mkdir -p api
python3 -m abrechnung -c config.yaml show-openapi > api/openapi.json