-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (22 loc) · 685 Bytes
/
Makefile
File metadata and controls
30 lines (22 loc) · 685 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
.SILENT: fmt check lint
download:
curl \
"https://converter.swagger.io/api/convert?url=https://api.incident.io/v1/openapi.json" \
-H "Accept: application/json" \
| jq -S > incident_io_openapi.json
generate_docs:
rm -rf docs/api_reference
poetry run python scripts/api_docs.py \
-p incident_io_client \
-d docs/api_reference \
-m mkdocs.yml
generate_client:
rm -rf incident_io_client
poetry run openapi-python-client generate --meta none --path incident_io_openapi.json
touch incident_io_client/py.typed
fmt:
pre-commit run --all-files ; exit 0
generate: generate_client generate_docs fmt
lint:
poetry run mypy incident_io_client scripts
poetry run flake8 .