You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes we have large dictionaries, enums, or even lists that contain relevant config info, but the order of the elements is not relevant. For example, we have a map from each of our Django models to the relevant basenames. We need to include every model, and it's easier to verify that a model is already included if you know where to look. This can be accomplished by alpa-sorting the keys. My suggestion is for there to be a special comment I can put at the top of the collection which will cause the entries to always be alpha-sorted. Maybe # autosort so that other tools can adopt the convention if they so choose?
The text was updated successfully, but these errors were encountered:
I think this can be collapsed with #1198 which proposes that we support sorting collections based on isort's rules (though that's not fully decided yet).
Sometimes we have large dictionaries, enums, or even lists that contain relevant config info, but the order of the elements is not relevant. For example, we have a map from each of our Django models to the relevant basenames. We need to include every model, and it's easier to verify that a model is already included if you know where to look. This can be accomplished by alpa-sorting the keys. My suggestion is for there to be a special comment I can put at the top of the collection which will cause the entries to always be alpha-sorted. Maybe
# autosort
so that other tools can adopt the convention if they so choose?The text was updated successfully, but these errors were encountered: