ruff/crates/ruff_cli/src
Víctor 6feea863a6
Update format.rs to display correct message for already formatted files (#9153)
## Summary

<!-- What's the purpose of the change? What does it do, and why? -->

New messages for "format" mode. 
Fixes #9132 

## Test Plan

<!-- How was it tested? -->

I ran the tests specified in `CONTRIBUTING.md`
```bash
cargo run -p ruff_cli -- check /path/to/some_files.py --no-cache
cargo run -p ruff_cli -- format --check /path/to/some_files.py --no-cache

cargo clippy --workspace --all-targets --all-features -- -D warnings
RUFF_UPDATE_SCHEMA=1 cargo test
pre-commit run --all-files --show-diff-on-failure
```

**Note:** In case no files are detected, either correctly formatted,
changed, or unchanged, it does not display a message. Wouldn't it be
better to show some message in this case?
2023-12-18 00:07:21 -05:00
..
bin Replace .map_or(false, $closure) with .is_some_and(closure) (#6244) 2023-08-01 19:29:42 +02:00
commands Update format.rs to display correct message for already formatted files (#9153) 2023-12-18 00:07:21 -05:00
snapshots Add ruff version with long version display (#8034) 2023-10-20 14:07:41 -05:00
args.rs Update ruff check and ruff format to default to the current directory (#8791) 2023-11-21 11:34:21 -06:00
cache.rs Dedicated cache directory per ruff version (#8333) 2023-10-30 09:08:30 +00:00
diagnostics.rs Add hidden --extension to override inference of source type from file extension (#8373) 2023-11-08 08:02:40 +05:30
lib.rs Update ruff check and ruff format to default to the current directory (#8791) 2023-11-21 11:34:21 -06:00
panic.rs Disallow unreachable_pub (#4314) 2023-05-11 18:00:00 -04:00
printer.rs Feature: Add SARIF output support (#9078) 2023-12-13 00:33:19 -05:00
resolve.rs Improve debug printing for resolving origin of config settings (#8729) 2023-11-17 01:10:36 +00:00
stdin.rs Write unchanged, excluded files to stdout when read via stdin (#8596) 2023-11-09 23:15:01 -05:00
version.rs Add ruff version with long version display (#8034) 2023-10-20 14:07:41 -05:00