Skip to content

Commit

Permalink
Move TokenAuth import out of global scope
Browse files Browse the repository at this point in the history
  • Loading branch information
gmertes committed Aug 1, 2024
1 parent f167df2 commit af5bf7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/anemoi/training/commands/mlflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# nor does it submit to any jurisdiction.


from anemoi.training.diagnostics.mlflow.auth import TokenAuth

from . import Command


Expand Down Expand Up @@ -40,6 +38,8 @@ def add_arguments(self, command_parser):

def run(self, args):
if args.subcommand == "login":
from anemoi.training.diagnostics.mlflow.auth import TokenAuth

TokenAuth(url=args.url).login(force_credentials=args.force_credentials)
return

Expand Down

0 comments on commit af5bf7a

Please sign in to comment.