-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exclude failure for tool.ruff[lint|format]
#8241
Comments
I think the issue here is that
The proper fix is to change their configuration to use |
See: pypa/build#697 I asked if we could improve our documentation to make the distinction more clear. |
But it still feels like |
I wouldn't know how that would work in a unified
Applying the same semantics in |
I don't know, but isn't it strange that setting |
It does exclude files in |
Hmm, are you sure? I don't believe that's the case, because we're only testing against the file itself, and not its parent directories. Given: [tool.ruff.lint]
exclude = ["tests/packages/test-bad-syntax"] Running:
If I change the [tool.ruff.lint]
exclude = ["tests/packages/test-bad-syntax/*.py"] Then:
|
Hmm interesting. Let's create a new issue for this because this is unrelated to the original report. |
(Sorry, I think I misunderstood the root cause of the reported issue.) |
Detected here: #8240 (comment)
With the following directory structure:
And, in
pyproject.toml
at[1]
[2]
Running the command:
With:
It works with
[tool.ruff]
. Themain
branch fails as well.The text was updated successfully, but these errors were encountered: