Closes #21500: Enable RUF022 to enforce sorted __all__ lists #296

Closed
opened 2026-04-05 16:25:01 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @pheus on 2/20/2026

Fixes: #21500

This PR enables RUF022 to enforce sorted __all__ lists.

To satisfy the new rule, it also applies consistent alphabetical ordering to __all__ definitions in all modules. While touching the Ruff configuration, I also cleaned up comment alignment/whitespace in ruff.toml for readability (no behavioral change beyond enabling RUF022).

*Originally created by @pheus on 2/20/2026* ### Fixes: #21500 This PR enables `RUF022` to enforce sorted `__all__` lists. To satisfy the new rule, it also applies consistent alphabetical ordering to `__all__` definitions in all modules. While touching the Ruff configuration, I also cleaned up comment alignment/whitespace in `ruff.toml` for readability (no behavioral change beyond enabling `RUF022`).
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#296