Skip to content

Commit 75eed37

Browse files
committed
linting for x86_64 env
1 parent 500b6ce commit 75eed37

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

nodestream/project/storage.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class StoreConfiguration:
1111
name: str
1212
storage_type: str
1313
arguments: Dict[str, Any]
14-
hmac_key: Optional[Union[LazyLoadedArgument,str]] = None
14+
hmac_key: Optional[Union[LazyLoadedArgument, str]] = None
1515

1616
def initialize(self) -> ObjectStore:
1717
resolved_args = LazyLoadedArgument.resolve_if_needed(self.arguments)
@@ -43,7 +43,12 @@ def describe_yaml_schema():
4343
from schema import Optional, Or, Schema
4444

4545
return Schema(
46-
{"name": str, "type": str, Optional("hmac_key"): Or(LazyLoadedArgument, str, only_one=True), Optional(str): object}
46+
{
47+
"name": str,
48+
"type": str,
49+
Optional("hmac_key"): Or(LazyLoadedArgument, str, only_one=True),
50+
Optional(str): object,
51+
}
4752
)
4853

4954

tests/unit/project/test_storage.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,10 @@ def test_store_configuration_initialize_with_lazy_hmac():
106106
name="test-store",
107107
storage_type="local",
108108
arguments={"root": mock_lazy_arg},
109-
hmac_key=mock_lazy_hmac
109+
hmac_key=mock_lazy_hmac,
110110
)
111111

112112
store = store_config.initialize()
113-
assert_that(
114-
base64.b64encode(store.signer.key).decode(),
115-
equal_to(expected_hmac)
116-
)
113+
assert_that(base64.b64encode(store.signer.key).decode(), equal_to(expected_hmac))
117114
assert_that(store.store.root, equal_to(expected_arg))
118-
mock_lazy_hmac.get_value.assert_called_once()
115+
mock_lazy_hmac.get_value.assert_called_once()

0 commit comments

Comments
 (0)