Skip to content

IMPR: Modernize pre-commit #1271

Description

@d-v-b

A few opportunities to improve the pre-commit hooks:

  • use pyproject.toml to configure as many hooks as possible instead of relying on tool-specific config files (like .codespellrc)
  • use ruff format instead of black. it's much faster.
  • use ruff instead of flake8. ruff is faster.
  • Apply safe linting changes immediately instead of just showing the diff. this is a faster workflow.

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

    enhancementIndicates new improvements

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions