Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# local dev miscellany
.bash_history_local
.envrc

# generated part of documentation
/docs/elements/*.md
/docs/schema/*.yaml
Expand Down
9 changes: 7 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,12 @@ clean: _clean_project

# (Re-)Generate project and documentation locally
[group('model development')]
site: gen-project gen-doc
site: gen-project gen-doc gensqla

# SQL Alchemy model
[group('model development')]
gensqla: _gen_sqla


# Deploy documentation site to Github Pages
[group('deployment')]
Expand Down Expand Up @@ -113,7 +118,7 @@ gen-python:

# Generate project files including Python data model
[group('model development')]
gen-project:
gen-project: _merge_common
uv run gen-project {{config_yaml}} -d {{dest}} {{source_schema_path}}
mv {{dest}}/*.py {{pymodel}}
uv run gen-pydantic {{gen_pydantic_args}} {{source_schema_path}} > {{pymodel}}/{{schema_name}}_pydantic.py
Expand Down
12 changes: 12 additions & 0 deletions project.justfile
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
## Add your own just recipes here. This is imported by the main justfile.

# Overriding recipes from the root justfile by adding a recipe with the same
# name in this file is not possible until a known issue in just is fixed,
# https://github.com/casey/just/issues/2540
[group('model development')]
_merge_common:
git submodule update --remote --merge --init

[group('model development')]
_gen_sqla:
mkdir -p {{dest}}/sqlalchemy && \
uv run gen-sqla {{source_schema_path}} --declarative > {{dest}}/sqlalchemy/{{schema_name}}.py
Loading