ruff/crates/ruff_cli/tests
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
..
snapshots Add cell field to JSON output format (#7664) 2023-10-13 01:06:02 +00:00
format.rs Respect --force-exclude for lint.exclude and format.exclude (#8393) 2023-10-31 17:45:48 -04:00
integration_test.rs Remove experimental formatter warning (#8148) 2023-10-24 01:26:29 +00:00
lint.rs Respect --force-exclude for lint.exclude and format.exclude (#8393) 2023-10-31 17:45:48 -04:00