Skip to content

Commit 8e76266

Browse files
formatting
1 parent c84b7a2 commit 8e76266

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed

src/planet_auth/storage_utils.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,7 @@ def _is_sops_path(file_path: pathlib.Path) -> bool:
132132

133133
@staticmethod
134134
def _filter_write_object(data: dict) -> dict:
135-
final_data = {
136-
k: v
137-
for k, v in data.items()
138-
if not (isinstance(k, str) and k.startswith("__"))
139-
}
135+
final_data = {k: v for k, v in data.items() if not (isinstance(k, str) and k.startswith("__"))}
140136
return final_data
141137

142138
@staticmethod

tests/test_planet_auth/unit/auth/auth_clients/oidc/test_oidc_request_authenticator.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,7 @@ def setUp(self):
7777
def _filter_spdata(data: dict) -> dict:
7878
# Storage providers are known to add "__" keys for their own use.
7979
# These should not be considered part of the general data.
80-
filtered_data = {
81-
k: v
82-
for k, v in data.items()
83-
if not (isinstance(k, str) and k.startswith("__"))
84-
}
80+
filtered_data = {k: v for k, v in data.items() if not (isinstance(k, str) and k.startswith("__"))}
8581
return filtered_data
8682

8783
def under_test_happy_path(self):

tests/test_planet_auth/unit/auth/test_storage_utils_file_backed_json_object.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,7 @@ def setUp(self):
9292
def _filter_spdata(data: dict) -> dict:
9393
# Storage providers are known to add "__" keys for their own use.
9494
# These should not be considered part of the general data.
95-
filtered_data = {
96-
k: v
97-
for k, v in data.items()
98-
if not (isinstance(k, str) and k.startswith("__"))
99-
}
95+
filtered_data = {k: v for k, v in data.items() if not (isinstance(k, str) and k.startswith("__"))}
10096
return filtered_data
10197

10298
def test_set_data_asserts_valid(self):

0 commit comments

Comments
 (0)