ruff/crates/ruff_workspace/src
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
..
configuration.rs [refurb] Implement isinstance-type-none (FURB168) (#8308) 2023-10-28 22:37:02 +00:00
lib.rs Add most formatter options to ruff.toml / pyproject.toml (#7566) 2023-09-22 15:47:57 +00:00
options.rs Use tool.ruff.lint in more places (#8317) 2023-10-28 18:39:38 -05:00
options_base.rs Rust 1.73 (#8007) 2023-10-23 02:12:25 +00:00
pyproject.rs Use tool.ruff.lint in more places (#8317) 2023-10-28 18:39:38 -05:00
resolver.rs Respect --force-exclude for lint.exclude and format.exclude (#8393) 2023-10-31 17:45:48 -04:00
settings.rs Change line-ending default to auto (#8057) 2023-10-20 00:13:11 +01:00