Skip to content

Pre-commit hook skips because pyproject.toml is in subdirectory #7239

@martinmiglio

Description

@martinmiglio

Issue

In my project, I have a poetry-check pre-commit hook (also shared in gist) which gets skipped when ran, saying:
poetry-check.........................................(no files to check)Skipped

I am almost entirely sure that this is because my pyproject.toml is in a sub-directory of my repo as only part of my project relies on it.

I would assume this is an easy fix, changing the files parameter in .pre-commit-hooks.yaml to match sub-directories too.

Or I might just be missing an argument in my hook to specify the directory, but none are mentioned on the poetry website where the hook is documented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expectedstatus/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