plating 2025-12-31
Code quality pass with decorator simplification and type annotation fixes
26 files · 190+ · 116-

Decorator simplification

1 file changed
  • decorators.py Simplified with_circuit_breaker to sync-only, fixed async_rate_limited return type, added type:ignore for timed_block
  • Simplified with_circuit_breaker in src/plating/decorators.py to sync-only (removed async variant), with note to use AsyncCircuitBreaker directly decouple behavioral
    1 file
    • decorators.py
  • Fixed async_rate_limited return type to AsyncGenerator[None, None] remediate behavioral
    1 file
    • decorators.py

Type annotations and import fixes

20 files changed
  • processor.py Fixed circular import by replacing DocsGenerator import with TYPE_CHECKING alias
  • api.py Expanded API surface (12 lines)
  • adorner.py Updated type annotations
  • auto_detect.py Updated type annotations
  • main.py Updated type annotations
  • pyproject.py Updated type annotations
  • single.py Updated type annotations
  • doc_generator.py Updated type annotations
  • finder.py Updated type annotations
  • errors.py Updated type annotations
  • linting.py Updated type annotations
  • markdown_validator.py Updated type annotations
  • nav_generator.py Updated type annotations
  • plating.py Updated type annotations
  • registry.py Updated type annotations
  • helpers.py Updated type annotations
  • engine.py Updated type annotations and foundation API usage
  • functions.py Updated type annotations
  • processor.py Updated type annotations
  • types.py Updated type annotations
  • Fixed circular import in src/plating/schema/processor.py by replacing DocsGenerator import with TYPE_CHECKING alias remediate internal
    1 file
    • processor.py
  • Updated type annotations across adorner, CLI utils, compiler, doc generator, discovery finder, errors, linting, markdown validator, mkdocs nav generator, plating core, registry, schema helpers, templating engine/functions/processor, types specify internal
    5 files
    • adorner.py
    • pyproject.py
    • doc_generator.py
    • finder.py
    • engine.py
  • Fixed src/plating/adorner/api.py with expanded API surface (12 lines) remediate behavioral
    1 file
    • api.py

Workspace expansion

1 file changed
  • wrknv.toml Expanded with 62 lines of additional workspace configuration
  • Expanded wrknv.toml with 62 lines of additional workspace configuration baseline internal
    1 file
    • wrknv.toml

Test updates

4 files changed
  • test_full_plate_workflow.py Updated for decorator and API changes
  • test_adorner.py Updated for API changes
  • test_capability_grouping.py Updated for API changes
  • test_mkdocs_nav_generator.py Updated for API changes
  • Updated tests across integration workflow, adorner, capability grouping, mkdocs nav generator qualify internal
    4 files
    • test_full_plate_workflow.py
    • test_adorner.py
    • test_capability_grouping.py
    • test_mkdocs_nav_generator.py