editorconfig-checker / editorconfig-checker/editorconfig-checker.python
Add an `editorconfig-checker-fix` pre-commit hook
- Lingua principale
- Python
- Stelle
- 54
- Fork
- 9
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
## 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
```yaml
repos:
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
hooks:
- id: editorconfig-checker-fix
```
## References
- Upstream `--fix` implementation: editorconfig-checker/editorconfig-checker#612
- https://github.com/editorconfig-checker/editorconfig-checker.python/blob/main/.pre-commit-hooks.yaml
- https://github.com/editorconfig-checker/editorconfig-checker.python/blob/main/README.md
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia da .pre-commit-hooks.yaml e conferma che il wrapper punti a una release upstream di editorconfig-checker contenente la modalità --fix dell’issue #612. Confronta la configurazione esistente dell’hook con l’utilizzo descritto nel README indicato. Il lavoro è completato quando un hook separato editorconfig-checker-fix esegue editorconfig-checker --fix, mentre l’hook esistente rimane di sola verifica.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- tooling
- Tipo di issue
- Funzionalità
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Attiva
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 74/100