conductor-python icon indicating copy to clipboard operation
conductor-python copied to clipboard

Mypy support

Open IgorChvyrov-sm opened this issue 2 months ago • 1 comments

Changes:

Added mypy configuration to pyproject.toml Added mypy check as a pre-commit and CI steps Implemented all ResourceAPI methods in adapters to provide type hints

Reason:

Improve code quality

IgorChvyrov-sm avatar Oct 23 '25 13:10 IgorChvyrov-sm

Codecov Report

:x: Patch coverage is 86.42298% with 104 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...io_client/adapters/api/integration_resource_api.py 75.00% 14 Missing :warning:
...tor/client/workflow/task/llm_tasks/utils/prompt.py 0.00% 7 Missing :warning:
...ductor/asyncio_client/workflow/task/switch_task.py 0.00% 4 Missing :warning:
...t/workflow/task/llm_tasks/utils/embedding_model.py 0.00% 4 Missing :warning:
...yncio_client/adapters/api/workflow_resource_api.py 92.68% 3 Missing :warning:
...ent/workflow/task/llm_tasks/llm_index_documents.py 0.00% 3 Missing :warning:
...lient/workflow/task/llm_tasks/llm_text_complete.py 0.00% 3 Missing :warning:
src/conductor/client/ai/orchestrator.py 0.00% 3 Missing :warning:
...onductor/client/event/queue/queue_configuration.py 0.00% 3 Missing :warning:
src/conductor/client/workflow/task/event_task.py 0.00% 3 Missing :warning:
... and 36 more
Files with missing lines Coverage Δ
.../asyncio_client/adapters/api/group_resource_api.py 100.00% <100.00%> (ø)
...yncio_client/adapters/api/metadata_resource_api.py 100.00% <100.00%> (ø)
...asyncio_client/adapters/api/schema_resource_api.py 100.00% <100.00%> (ø)
.../conductor/asyncio_client/adapters/api/tags_api.py 100.00% <100.00%> (ø)
...r/asyncio_client/adapters/api/user_resource_api.py 100.00% <100.00%> (ø)
...ctor/asyncio_client/adapters/api_client_adapter.py 95.45% <100.00%> (-0.05%) :arrow_down:
...r/asyncio_client/adapters/models/action_adapter.py 91.30% <100.00%> (+0.39%) :arrow_up:
...ctor/asyncio_client/adapters/models/any_adapter.py 71.42% <100.00%> (-1.30%) :arrow_down:
...ters/models/descriptor_proto_or_builder_adapter.py 88.00% <100.00%> (ø)
...yncio_client/adapters/models/schema_def_adapter.py 100.00% <100.00%> (ø)
... and 130 more
:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

codecov[bot] avatar Oct 23 '25 14:10 codecov[bot]