ruff/crates/ruff_linter
Zanie 0001350a27 Replace `--show-source` and `--no-show-source` with `--output_format=<full|concise>` (#9687)
Fixes #7350

## Summary

* `--show-source` and `--no-show-source` are now deprecated.
* `output-format` supports two new variants, `full` and `concise`.
`text` is now a deprecated variant, and any use of it is treated as the
default serialization format.
* `--output-format` now default to `concise`
* In preview mode, `--output-format` defaults to `full`
* `--show-source` will still set `--output-format` to `full` if the
output format is not otherwise specified.
* likewise, `--no-show-source` can override an output format that was
set in a file-based configuration, though it will also be overridden by
`--output-format`

## Test Plan

A lot of tests were updated to use `--output-format=full`. Additional
tests were added to ensure the correct deprecation warnings appeared,
and that deprecated options behaved as intended.
# Conflicts:
#	crates/ruff/tests/integration_test.rs
2024-02-01 08:52:33 -06:00
..
resources Recategorize `static-key-dict-comprehension` from `RUF011` to `B035` (#9428) 2024-02-01 08:46:55 -06:00
src Replace `--show-source` and `--no-show-source` with `--output_format=<full|concise>` (#9687) 2024-02-01 08:52:33 -06:00
Cargo.toml Add internal hidden rules for testing (#9747) 2024-02-01 08:44:51 -06:00
__init__.py [`pylint`] (Re-)Implement `import-private-name` (`C2701`) (#9553) 2024-01-16 14:03:11 -05:00