Skip to content

Ensure full Python 3.13 core rules compliance #319

@orenk9

Description

@orenk9

Is your feature request related to a problem? Please describe.
The codebase needs to be updated to fully comply with Python 3.13 core development patterns and best practices as specified in .cursor/rules/python-core.mdc. Currently, the codebase uses older Python patterns that don't leverage Python 3.13's enhanced features and type system improvements.

Describe the solution you'd like
Implement comprehensive Python 3.13 compliance across the entire codebase including:

  • Add from __future__ import annotations to all Python files for forward references
  • Replace deprecated typing imports (List/Dict/Tuple) with lowercase versions (list/dict/tuple)
  • Add complete type hints to all function signatures
  • Replace time.time() with time.perf_counter() for performance measurements
  • Replace os.path usage with pathlib.Path for file operations
  • Update string formatting to use f-strings exclusively
  • Fix all type checking and linting errors

Describe alternatives you've considered

  • Maintaining current code patterns (not recommended as it doesn't leverage Python 3.13 improvements)
  • Partial compliance (not recommended as it creates inconsistency)

Additional context
This refactoring ensures the codebase follows modern Python 3.13 best practices, improves type safety, and takes advantage of performance optimizations available in Python 3.13. The changes maintain backward compatibility while modernizing the codebase.

Impact:

  • 187 files changed: 3,953 insertions(+), 1,064 deletions(-)
  • 9 commits included
  • All changes maintain backward compatibility
  • Code quality checks pass successfully

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions