mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 06:11:43 +00:00
Make show-settings filters directory-agnostic (#9866)
Closes https://github.com/astral-sh/ruff/issues/9864.
This commit is contained in:
parent
fdb5eefb33
commit
e9ddd4819a
5 changed files with 47 additions and 26 deletions
|
@ -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(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue