Skip to content

pre-commit check scopes #247

@samaloney

Description

@samaloney

Provide a general description of the issue or problem.

Currently use long exclude lists to exclude files from certain checks it might be easier to do the inverse and set the type of files we do want the checks to run on. using the file, types, types_or https://pre-commit.com/#pre-commit-configyaml---hooks

Importantly file, types, types_or override the root config but exclude_types does not which is the cause of #213

There is also https://prek.j178.dev which might be worth some consideration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions