Skip to content

chore: Fix 164 ruff linting warnings (149 auto-fixable) #609

@mikejmorgan-ai

Description

@mikejmorgan-ai

Description

Running ruff check cortex/ reports 164 linting issues, 149 of which are auto-fixable.

Main Categories

  1. Import sorting (I001): Import blocks are un-sorted
  2. Deprecated typing (UP035/UP006): Using typing.List, typing.Dict instead of built-in list, dict
  3. Optional syntax (UP045): Using Optional[X] instead of X | None

Fix

ruff check cortex/ --fix

Benefits

  • Cleaner, more modern Python code
  • Better compatibility with Python 3.10+ type hints
  • Consistent import ordering

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions