ruff/crates/ruff_cli
Charlie Marsh 1642f4dbd9
Respect --force-exclude for lint.exclude and format.exclude (#8393)
## Summary

We typically avoid enforcing exclusions if a file was passed to Ruff
directly on the CLI. However, we also allow `--force-exclude`, which
ignores excluded files _even_ if they're passed to Ruff directly. This
is really important for pre-commit, which always passes changed files --
we need to exclude files passed by pre-commit if they're in the
`exclude` lists.

Turns out the new `lint.exclude` and `format.exclude` settings weren't
respecting `--force-exclude`.

Closes https://github.com/astral-sh/ruff/issues/8391.
2023-10-31 17:45:48 -04:00
..
resources/test/fixtures Formatter parentheses support for IpyEscapeCommand (#8207) 2023-10-25 14:01:50 +00:00
src Respect --force-exclude for lint.exclude and format.exclude (#8393) 2023-10-31 17:45:48 -04:00
tests Respect --force-exclude for lint.exclude and format.exclude (#8393) 2023-10-31 17:45:48 -04:00
build.rs Add ruff version with long version display (#8034) 2023-10-20 14:07:41 -05:00
Cargo.toml Dedicated cache directory per ruff version (#8333) 2023-10-30 09:08:30 +00:00