ruff/crates/ruff_cli
Charlie Marsh 86cdaea743
Allow selective caching for --fix and --diff (#8316)
## Summary

If a file has no diagnostics, then we can read and write that
information from and to the cache, even if the fix mode is `--fix` or
`--diff`. (Typically, we can't read or write such results from or to the
cache, because `--fix` and `--diff` have side effects that take place
during diagnostic analysis (writing to disk or outputting the diff).)
This greatly improves performance when running `--fix` on a codebase in
the common case (few diagnostics).

Closes #8311.
Closes https://github.com/astral-sh/ruff/issues/8315.
2023-10-29 16:06:35 +00:00
..
resources/test/fixtures Formatter parentheses support for IpyEscapeCommand (#8207) 2023-10-25 14:01:50 +00:00
src Allow selective caching for --fix and --diff (#8316) 2023-10-29 16:06:35 +00:00
tests Refine the warnings about incompatible linter options (#8196) 2023-10-26 16:22:56 +00:00
build.rs Add ruff version with long version display (#8034) 2023-10-20 14:07:41 -05:00
Cargo.toml Bump version to v0.1.3 (#8259) 2023-10-26 18:57:05 +00:00