mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-03 15:15:33 +00:00
Sort hash maps in Settings
display (#10370)
## Summary We had a report of a test failure on a specific architecture, and looking into it, I think the test assumes that the hash keys are iterated in a specific order. This PR thus adds a variant to our settings display macro specifically for maps and sets. Like `CacheKey`, it sorts the keys when printing. Closes https://github.com/astral-sh/ruff/issues/10359.
This commit is contained in:
parent
dbf82233b8
commit
c56fb6e15a
12 changed files with 165 additions and 67 deletions
|
@ -97,8 +97,8 @@ impl fmt::Display for Settings {
|
|||
namespace = "linter.pydocstyle",
|
||||
fields = [
|
||||
self.convention | optional,
|
||||
self.ignore_decorators | debug,
|
||||
self.property_decorators | debug
|
||||
self.ignore_decorators | set,
|
||||
self.property_decorators | set
|
||||
]
|
||||
}
|
||||
Ok(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue