Skip to content

Support pre-commit hooks even if poetry related files are missing #6944

@mijdavis2

Description

@mijdavis2
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the FAQ and general documentation and believe that my question is not already covered.

Feature Request

Pre-commit is excellent for standardizing checks across an organization's repositories. Other pre-commits use conditionals to SKIP checks if they are unnecessary. Poetry's pre-commits, however, will fail if pyproject.toml/poetry.lock dont exist in a repo,

Current behavior

pre-commits for poetry fail if poetry related files are missing

Ideal behavior

pre-commits for poetry SKIP gracefully if poetry related files are missing

But why?

So .pre-commit-config.yaml files can be consistent across all repos for an organization.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureFeature requests/implementationsstatus/triageThis issue needs to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions