Skip to content

Commit

Permalink
fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ysysys3074 committed Aug 18, 2023
1 parent 5b81336 commit 1ed6da8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion flytekit/core/context_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,9 @@ def __getattr__(self, item: str) -> _GroupSecrets:
"""
return self._GroupSecrets(item, self)

def get(self, group: str, key: Optional[str] = None, group_version: Optional[str] = None, encode_mode: str = "r") -> str:
def get(
self, group: str, key: Optional[str] = None, group_version: Optional[str] = None, encode_mode: str = "r"
) -> str:
"""
Retrieves a secret using the resolution order -> Env followed by file. If not found raises a ValueError
"""
Expand Down
4 changes: 2 additions & 2 deletions tests/flytekit/unit/core/test_context_manager.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import base64
import os
from datetime import datetime

import base64
import mock
import py
import pytest
Expand Down Expand Up @@ -168,7 +168,7 @@ def test_secrets_manager_file(tmpdir: py.path.local):
assert sec.get("group", "test") == "my-password"
assert sec.group.test == "my-password"

base64_string ="R2Vla3NGb3JHZWV =="
base64_string = "R2Vla3NGb3JHZWV =="
base64_bytes = base64_string.encode("ascii")
base64_str = base64.b64encode(base64_bytes)
with open(f, "wb") as w:
Expand Down

0 comments on commit 1ed6da8

Please sign in to comment.