Open raianul opened 7 months ago
I have related issue in that I think include
is also ignored when it is defined in pyproject.toml or ruff.toml too.
I can confirm exclude works in .toml files.
The include
and exclude
as mentioned in the PR description are part of pre-commit
configuration and not Ruff. But pre-commit
doesn't have any include
key in that position (https://pre-commit.com/#pre-commit-configyaml---hooks), but it does have files
(https://pre-commit.com/#config-files) which might be what you're looking for.
The
include
andexclude
as mentioned in the PR description are part ofpre-commit
configuration and not Ruff. Butpre-commit
doesn't have anyinclude
key in that position (https://pre-commit.com/#pre-commit-configyaml---hooks), but it does havefiles
(https://pre-commit.com/#config-files) which might be what you're looking for.
Ah okay, I'll check that out. Thanks for the post 👍
When I use
ruff
withinclude
from my shell, its work and ignore all directory and only apply ruff to the include directory.But when I'm going to use
include
withpre-commit
its not workingBut
exclude
works -I'm using a
ruff.toml
also whereexclude=[...]
basing excluding list.