-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (24 loc) · 877 Bytes
/
Makefile
File metadata and controls
34 lines (24 loc) · 877 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
.PHONY: install install-docs test lint format docs-schema docs-html docs gen-pydantic clean
install:
pip install -e ".[dev]"
install-docs:
npm install
test:
pytest tests/
lint:
ruff check src/ scripts/
format:
ruff format src/ scripts/
docs-schema:
python -m linkml_asciidoc_generator.main "model/cesm_v0.1.0.yaml" -o "artifacts/documentation/modules/schema"
@mkdir -p artifacts/documentation/modules/schema/pages/enumeration
@echo '= Duration\n\nDuration is an ISO 8601 duration type (xsd:duration).' > artifacts/documentation/modules/schema/pages/enumeration/Duration.adoc
docs-html:
npx antora antora-playbook.yml
docs: docs-schema docs-html
gen-pydantic:
gen-pydantic model/cesm_v0.1.0.yaml > src/generated/cesm_pydantic.py
clean:
rm -rf build/ dist/ *.egg-info
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete