Skip to content
Draft
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
36 changes: 36 additions & 0 deletions python/ommx-pyomo-adapter/Taskfile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# https://taskfile.dev
# yaml-language-server: $schema=https://taskfile.dev/schema.json
version: "3"

tasks:
default:
cmds:
- task: test

test:
desc: Run all tests for OMMX Pyomo Adapter
cmds:
- task: pytest
- task: pyright
- task: markdown-code-runner
- task: lint

pytest:
desc: Run pytest tests
cmds:
- uv run pytest -vv --doctest-modules

pyright:
desc: Run pyright type checking
cmds:
- uv run pyright

markdown-code-runner:
desc: Run markdown code runner
cmds:
- uv run markdown-code-runner --verbose README.md

lint:
desc: Lint by ruff check
cmds:
- uv run ruff check
7 changes: 7 additions & 0 deletions python/ommx-pyomo-adapter/ommx_pyomo_adapter/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from .exception import OMMXPyomoAdapterError
from .adapter import OMMXPyomoAdapter

__all__ = [
"OMMXPyomoAdapter",
"OMMXPyomoAdapterError",
]
Loading
Loading