Skip to content

Commit

Permalink
✨ Add blank=True (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnyosun authored Nov 17, 2024
1 parent 0e22a39 commit f7d75cf
Show file tree
Hide file tree
Showing 8 changed files with 964 additions and 116 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,4 @@ docs/clinicore.*
lamin_sphinx
docs/conf.py
_docs_tmp*
docs/test-clinicore/
test-clinicore/
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ fail_fast: false
default_language_version:
python: python3
default_stages:
- commit
- push
- pre-commit
- pre-push
minimum_pre_commit_version: 2.12.0
repos:
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.4
rev: v4.0.0-alpha.8
hooks:
- id: prettier
exclude: |
(?x)(
docs/changelog.md
)
- repo: https://github.com/kynan/nbstripout
rev: 0.6.1
rev: 0.8.0
hooks:
- id: nbstripout
exclude: |
Expand All @@ -24,13 +24,13 @@ repos:
docs/notes/
)
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.7
rev: v0.7.4
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --unsafe-fixes]
- id: ruff-format
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v5.0.0
hooks:
- id: detect-private-key
- id: check-ast
Expand All @@ -44,7 +44,7 @@ repos:
- id: trailing-whitespace
- id: check-case-conflict
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.7.1
rev: v1.13.0
hooks:
- id: mypy
args: [--no-strict-optional, --ignore-missing-imports]
Expand Down
2 changes: 2 additions & 0 deletions clinicore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ def __getattr__(name):


if _check_instance_setup():
import lamindb

del __getattr__ # delete so that imports work out
from .models import (
Biosample,
Expand Down
10 changes: 5 additions & 5 deletions clinicore/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class Migration(migrations.Migration):
options={
"abstract": False,
},
bases=(lnschema_core.models.CanValidate, models.Model),
bases=(lnschema_core.models.CanCurate, models.Model),
),
migrations.CreateModel(
name="Medication",
Expand Down Expand Up @@ -179,7 +179,7 @@ class Migration(migrations.Migration):
bases=(
models.Model,
lnschema_core.models.HasParents,
lnschema_core.models.CanValidate,
lnschema_core.models.CanCurate,
),
),
migrations.CreateModel(
Expand Down Expand Up @@ -263,7 +263,7 @@ class Migration(migrations.Migration):
options={
"abstract": False,
},
bases=(lnschema_core.models.CanValidate, models.Model),
bases=(lnschema_core.models.CanCurate, models.Model),
),
migrations.CreateModel(
name="Project",
Expand Down Expand Up @@ -316,7 +316,7 @@ class Migration(migrations.Migration):
options={
"abstract": False,
},
bases=(lnschema_core.models.CanValidate, models.Model),
bases=(lnschema_core.models.CanCurate, models.Model),
),
migrations.CreateModel(
name="Treatment",
Expand Down Expand Up @@ -400,6 +400,6 @@ class Migration(migrations.Migration):
options={
"abstract": False,
},
bases=(lnschema_core.models.CanValidate, models.Model),
bases=(lnschema_core.models.CanCurate, models.Model),
),
]
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class Migration(migrations.Migration):
options={
"abstract": False,
},
bases=(lnschema_core.models.CanValidate, models.Model),
bases=(lnschema_core.models.CanCurate, models.Model),
),
migrations.AddField(
model_name="biosample",
Expand Down
Loading

0 comments on commit f7d75cf

Please sign in to comment.