Proposal
Add a dedicated editorconfig-checker-fix hook to .pre-commit-hooks.yaml that runs editorconfig-checker --fix, once this wrapper targets an upstream release containing the --fix mode from editorconfig-checker/editorconfig-checker#612.
The existing editorconfig-checker hook should remain check-only. A separate hook would expose the upstream opt-in fixing mode directly through pre-commit without requiring users to add args: [--fix] themselves.
Usage
repos:
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
hooks:
- id: editorconfig-checker-fix
References
Proposal
Add a dedicated
editorconfig-checker-fixhook to.pre-commit-hooks.yamlthat runseditorconfig-checker --fix, once this wrapper targets an upstream release containing the--fixmode from editorconfig-checker/editorconfig-checker#612.The existing
editorconfig-checkerhook should remain check-only. A separate hook would expose the upstream opt-in fixing mode directly through pre-commit without requiring users to addargs: [--fix]themselves.Usage
References
--fiximplementation: feat: add safe EditorConfig autofixes editorconfig-checker#612