Skip to content

IMPR: Modernize pre-commit #1271

@d-v-b

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementIndicates new improvementstriageIndicates issues, pull requests, or discussions need to be reviewed for the first time

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions