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
11 changes: 9 additions & 2 deletions bin/check-py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@ echo "Running ruff..."
uv run --only-group dev ruff check .
uv run --only-group dev ruff format --check .

echo "Running ty..."
uv run --only-group dev ty check
# ty check requires maturin develop (native module must be built).
# Skip in CI where the native module may not be available.
if [ -z "${CI:-}" ]; then
echo "Building Python bindings for type checking..."
uv run maturin develop

echo "Running ty..."
uv run --only-group dev ty check
fi

echo "Python checks passed!"
17 changes: 17 additions & 0 deletions tests/test_md_cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
"""Tests for the dkdc-md-cli Python bindings."""

from dkdc_md_cli import run, main


class TestImports:
def test_import_run(self):
assert callable(run)

def test_import_main(self):
assert callable(main)

def test_run_has_docstring(self):
assert run.__doc__ is not None

def test_main_has_docstring(self):
assert main.__doc__ is not None
Loading