Skip to content
Merged
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
# generated pydantic model
/src/include_access_model/datamodel/include_access_model_pydantic.py
/src/include_access_model/datamodel/include_access_model.py
/src/include_access_model/datamodel/include_access_model_sqla.py

# linkml-run-examples output (not useful to have in git in its current form)
/examples/output/
Expand Down
2 changes: 1 addition & 1 deletion project.justfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dbt: gen-sqla gen-ftddd gen-dbtmodel
[group('model development')]
gen-sqla:
mkdir -p {{dest}}/sqlalchemy && \
uv run gen-sqla {{source_schema_path}} --declarative > {{dest}}/sqlalchemy/{{schema_name}}.py
uv run gen-sqla {{source_schema_path}} --declarative > {{pymodel}}/{{schema_name}}_sqla.py


[group('model development')]
Expand Down
33 changes: 22 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[build-system]
requires = ["hatchling",
"uv-dynamic-versioning",
"the-caddie"]
requires = [
"hatchling>=1.32.0",
"uv-dynamic-versioning"
]
build-backend = "hatchling.build"

[project]
Expand All @@ -17,21 +18,20 @@ requires-python = ">=3.12,<4.0"
dynamic = ["version"]

dependencies = [

"hatchling>=1.32.0",
"linkml>=1.11.0",
"linkml-runtime>=1.11.0",
"the-caddie",
"term-weaver"
"sqlalchemy",
"linkml-runtime>=1.11.0"
]

[dependency-groups]
dev = [
"linkml>=1.11.0",
"mkdocs-material>=8.2.8",
"mkdocs-mermaid2-plugin>=1.1.1",
"mkdocs-pymdownx-material-extras>=2.5.6",
"jupyter>=1.0.0",
"mknotebooks>= 0.8.0",
"the-caddie",
"term-weaver"
]

# See https://hatch.pypa.io/latest/config/build/#file-selection for how to
Expand Down Expand Up @@ -65,16 +65,27 @@ skip = [
"uv.lock",
"project/*",
"src/include_access_model/datamodel/include_access_model_pydantic.py",
"src/include_access_model/datamodel/include_access_model_sqla.py",
"src/include_access_model/datamodel/include_access_model.py",
]

# Reminder: words have to be lowercased for the ignore-words-list
ignore-words-list = "linke"
quiet-level = 3

# Activate the hook
[tool.hatch.build.targets.wheel.hooks.caddie-sqla]
[tool.hatch.build.targets.wheel]
packages = ["src/include_access_model"]
artifacts = ["src/include_access_model/datamodel/*.py"]

[tool.hatch.build.targets.sdist]
artifacts = ["src/include_access_model/datamodel/*.py"]
exclude = [
".direnv",
".venv",
"scratch",
"scripts",
"helpers"
]

# Ref.: https://github.com/crate-ci/typos (spell checker)
[tool.typos.default.extend-words]
Expand Down
19 changes: 11 additions & 8 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading