ruff/crates/ruff_cli/tests
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
..
snapshots Add cell field to JSON output format (#7664) 2023-10-13 01:06:02 +00:00
format.rs Update format.rs to display correct message for already formatted files (#9153) 2023-12-18 00:07:21 -05:00
integration_test.rs Hide unsafe fix suggestions when explicitly disabled (#9095) 2023-12-11 15:42:53 -06:00
lint.rs Stop at the first resolved parent configuration (#8864) 2023-11-29 04:21:07 +00:00
resolve_files.rs Update ruff check and ruff format to default to the current directory (#8791) 2023-11-21 11:34:21 -06:00