Explore if we can have a pre-commit hook to check the sorted order of modules in init.py
Contributor guide
Tech stack
pythonshell
Domain
developer experiencetooling
Issue type
feature
DifficultyEstimated implementation difficulty for a new contributor, from 1 for very small changes to 5 for expert-level work.
3
Estimated timeA rough time range for an experienced contributor to investigate, implement, test, and prepare a pull request.
half day
Activity statusHow available the issue appears right now: fresh, active, stale, blocked, or waiting on maintainer input.
stale
ClarityHow clearly the issue explains the expected change, acceptance criteria, and next step.
needs investigation
Prerequisites
PythonPre commit hooks concept
Newbie friendlinessA 1-100 score estimating how approachable this issue is for first-time contributors.
40
Research direction
Review the comments in issue #395 for prior discussion and any blockers. Investigate the pre commit tool and its configuration format (e.g., .pre commit config.yaml). Examine the file modules/src/ init .py to understand the current module ordering. Determine if a custom Python hook or an existing hook (like check sorted) can be used to enforce sorted order. The goal is to propose a concrete implementation or decide if it's feasible.