chore(ruff): Add RUF022 and tweak formatting in ruff.toml

Enable `RUF022` to enforce sorted `__all__` lists. Adjust comment
alignment and whitespace for improved readability and consistency
in ruff.toml configuration.
This commit is contained in:
Martin Hauser
2026-02-20 15:34:58 +01:00
parent bb1a44d35b
commit 85d6242962
+1
View File
@@ -43,6 +43,7 @@ extend-select = [
"I", # import sorting (isort-equivalent)
"RET", # return semantics (flake8-return family: consistent/explicit returns; remove redundant else/assign before return)
"UP", # pyupgrade: modernize syntax for your target Python (e.g., f-strings, built-in generics, newer stdlib idioms)
"RUF022", # ruff: enforce sorted `__all__` lists
]
ignore = [
"F403", # pyflakes: `from ... import *` used; unable to detect undefined names