Skip to content

Add an editorconfig-checker-fix pre-commit hook #58

Description

@pygarap

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions