Skip to content

Commit

Permalink
Fixed lint errors
Browse files Browse the repository at this point in the history
Signed-off-by: Ketan Umare <[email protected]>
  • Loading branch information
kumare3 committed Mar 28, 2023
1 parent 728a81f commit 94a7bb5
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 9 deletions.
6 changes: 0 additions & 6 deletions flytekit/clients/auth/authenticator.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
import base64
import json
import logging
import subprocess
import time
import typing
from abc import abstractmethod
from dataclasses import dataclass
from datetime import datetime, timedelta

import requests

from . import token_client
from .auth_client import AuthorizationClient
Expand Down
2 changes: 1 addition & 1 deletion flytekit/clients/auth/token_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def poll_token_endpoint(resp: DeviceCodeResponse, token_endpoint: str, client_id
...
except Exception:
raise
print(f"Authentication Pending...")
print("Authentication Pending...")
time.sleep(interval.total_seconds())
tick = tick + interval
raise AuthenticationError("Authentication failed!")
2 changes: 1 addition & 1 deletion tests/flytekit/unit/clients/auth/test_token_client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import json
from unittest.mock import MagicMock, PropertyMock, patch
from unittest.mock import MagicMock, patch

import pytest

Expand Down
1 change: 0 additions & 1 deletion tests/flytekit/unit/clients/test_auth_helper.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import os.path
import typing
from unittest.mock import MagicMock, patch

import pytest
Expand Down

0 comments on commit 94a7bb5

Please sign in to comment.