-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Description
-
Poetry version: Poetry (version 1.3.1)
-
Python version: Python 3.11.0
-
OS version and name: Windows 11
-
pyproject.toml: https://gist.github.com/marmig0404/cf3c44f35ad86502ac82f104e77aab73
-
I am on the latest stable Poetry version, installed using a recommended method.
-
I have searched the issues of this repo and believe that this is not a duplicate.
-
I have consulted the FAQ and blog for any relevant entries or release notes.
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.