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
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
run: poetry run ruff check .

- name: Type Check (MyPy)
run: poetry run mypy imednet
run: poetry run mypy src/imednet

- name: Security Audit
run: |
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

docs:
poetry install --with dev
poetry run sphinx-apidoc -o docs imednet \
imednet/core/__init__.py imednet/models/base.py
poetry run sphinx-apidoc -o docs src/imednet \
src/imednet/core/__init__.py src/imednet/models/base.py
poetry run sphinx-build -b html --keep-going docs docs/_build/html
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@


# Add project root directory to sys.path so `imednet` can be imported
sys.path.insert(0, os.path.abspath(".."))
# The path must point to 'src' so 'imednet' is importable from there.
sys.path.insert(0, os.path.abspath("../src"))
warnings.filterwarnings("ignore", message="duplicate object description*")
warnings.filterwarnings("ignore", message="Failed guarded type import*")

Expand Down
1 change: 1 addition & 0 deletions examples/airflow/imednet_export_operator_dag.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from datetime import datetime

from airflow import DAG

from imednet.integrations.airflow import ImednetExportOperator

"""Example DAG showing :class:`ImednetExportOperator` to write records to a file.
Expand Down
1 change: 1 addition & 0 deletions examples/airflow/imednet_job_sensor_dag.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from datetime import datetime

from airflow import DAG

from imednet.integrations.airflow import ImednetJobSensor

"""Example DAG demonstrating :class:`ImednetJobSensor` to monitor an iMednet job.
Expand Down
1 change: 1 addition & 0 deletions examples/airflow/imednet_to_s3_dag.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from datetime import datetime

from airflow import DAG

from imednet.integrations.airflow import ImednetToS3Operator

"""Example DAG using :class:`ImednetToS3Operator` to export data to S3.
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ classifiers = [
]
authors = ["Frederick de Ruiter <127706008+fderuiter@users.noreply.github.com>"]
maintainers = ["Frederick de Ruiter <fpderuiter@gmail.com>"]
packages = [{ include = "imednet" }]
packages = [{ include = "imednet", from = "src" }]
include = [
"README.md",
"LICENSE",
"imednet/py.typed",
"src/imednet/py.typed",
{ path = "examples", format = "sdist" } # Include examples only in sdist
]
license = "MIT"
Expand Down Expand Up @@ -106,7 +106,7 @@ target-version = ["py310"]

[tool.ruff]
line-length = 100
src = ["imednet", "tests"]
src = ["src", "tests"]

[tool.ruff.lint.isort]
known-first-party = ["imednet"]
Expand All @@ -122,7 +122,7 @@ classmethod-decorators = ["field_validator", "model_validator"]
profile = "black"
line_length = 100
known_first_party = ["imednet"]
src_paths = ["imednet", "tests"]
src_paths = ["src", "tests"]

[tool.doc8]
max_line_length = 400
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.