-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathMakefile
52 lines (40 loc) · 809 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
.PHONY: test
test:
pytest tests --doctest-modules --cov=abrechnung
.PHONY: format
format:
ruff format
cd frontend && npx prettier --write . && cd ..
.PHONY: check-format
check-format:
ruff format --check
.PHONY: check-format-frontend
check-format-frontend:
cd frontend && npx prettier --check . && cd ..
.PHONY: lint
lint: pylint mypy ruff
.PHONY: pylint
pylint:
pylint ./**/*.py
.PHONY: ruff
ruff:
ruff check
.PHONY: ruff-fix
ruff-fix:
ruff check --fix
.PHONY: eslint
eslint:
cd frontend && npx nx lint && cd ..
.PHONY: mypy
mypy:
mypy .
.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