Make show-settings filters directory-agnostic (#9866)

Closes https://github.com/astral-sh/ruff/issues/9864.
This commit is contained in:
Charlie Marsh 2024-02-06 19:20:27 -08:00 committed by GitHub
parent fdb5eefb33
commit e9ddd4819a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 47 additions and 26 deletions

View file

@ -60,9 +60,7 @@ impl fmt::Display for Settings {
display_settings! {
formatter = f,
fields = [
// We want the quotes and lossy UTF8 conversion for this path, so
// using PathBuf's `Debug` formatter suffices.
self.cache_dir | debug,
self.cache_dir | path,
self.fix,
self.fix_only,
self.output_format,
@ -101,7 +99,7 @@ impl fmt::Display for FileResolverSettings {
self.include,
self.extend_include,
self.respect_gitignore,
self.project_root | debug,
self.project_root | path,
]
}
Ok(())