Move show_source onto CLI settings group (#4317)

This commit is contained in:
Charlie Marsh 2023-05-09 13:26:25 -04:00 committed by GitHub
parent a435c0df4b
commit 8c2cfade90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 9 deletions

View file

@ -150,6 +150,7 @@ fn check(args: CheckArgs, log_level: LogLevel) -> Result<ExitStatus> {
fix_only,
format,
show_fixes,
show_source,
..
} = pyproject_config.settings.cli;
@ -181,8 +182,7 @@ fn check(args: CheckArgs, log_level: LogLevel) -> Result<ExitStatus> {
if show_fixes {
printer_flags |= PrinterFlags::SHOW_FIXES;
}
if pyproject_config.settings.lib.show_source {
if show_source {
printer_flags |= PrinterFlags::SHOW_SOURCE;
}