Currently, the repository does not seem to have a consistent code style, and there is no formatter or pre-commit hook configured.
I’d like to propose adding automatic formatting and pre-commit checks to make contributions more consistent and reduce unnecessary diffs.
Plan:
Apply a standard formatter (ruff format);
Add a .pre-commit-config.yaml;
Run a one-time global format (large diff, no logic changes).
Impact:
Large diff initially, but improves maintainability long-term.