Skip to content

Commit 6f0ae0d

Browse files
fmoessbauerjan-kiszka
authored andcommitted
plugins: import plugins in alphabetical order
We cleanup the plugin loader by sorting all plugins alphabetically. This makes it easier for future additions to not conflict with each other. It also makes it clear that the import order must not matter. No functional change. Signed-off-by: Felix Moessbauer <[email protected]> Signed-off-by: Jan Kiszka <[email protected]>
1 parent 110913f commit 6f0ae0d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

kas/plugins/__init__.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,22 @@ def load():
3838
"""
3939
Import all kas plugins
4040
"""
41+
# sort alphabetically
4142
from . import build
42-
from . import for_all_repos
4343
from . import checkout
44-
from . import shell
45-
from . import menu
4644
from . import dump
45+
from . import for_all_repos
4746
from . import lock
47+
from . import menu
48+
from . import shell
4849

4950
register_plugins(build)
5051
register_plugins(checkout)
5152
register_plugins(dump)
5253
register_plugins(for_all_repos)
5354
register_plugins(lock)
54-
register_plugins(shell)
5555
register_plugins(menu)
56+
register_plugins(shell)
5657

5758

5859
def get(name):

0 commit comments

Comments
 (0)