editorconfig-checker / editorconfig-checker/editorconfig-checker.python

Add an `editorconfig-checker-fix` pre-commit hook

Open Beginner friendly
#58 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
54
Forks
9
PR merge metrics
No merged PRs in 30d

Description

## 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

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with .pre-commit-hooks.yaml and confirm the wrapper targets an upstream editorconfig-checker release containing the --fix mode from issue #612. Compare the existing hook configuration and the referenced README usage. Done means a separate editorconfig-checker-fix hook runs editorconfig-checker --fix while the existing hook remains check-only.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
74/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.