Skip to content

Commit d03f8f4

Browse files
author
Michael Brewer
committed
fix(deps): Bump black from 19.10b0 to 20.8b1
1 parent 4d650ce commit d03f8f4

File tree

12 files changed

+36
-26
lines changed

12 files changed

+36
-26
lines changed

aws_lambda_powertools/shared/functions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44

55
def resolve_truthy_env_var_choice(env: Any, choice: bool = None) -> bool:
6-
""" Pick explicit choice over truthy env value, if available, otherwise return truthy env value
6+
"""Pick explicit choice over truthy env value, if available, otherwise return truthy env value
77
88
NOTE: Environment variable should be resolved by the caller.
99
@@ -23,7 +23,7 @@ def resolve_truthy_env_var_choice(env: Any, choice: bool = None) -> bool:
2323

2424

2525
def resolve_env_var_choice(env: Any, choice: bool = None) -> Union[bool, Any]:
26-
""" Pick explicit choice over env, if available, otherwise return env value received
26+
"""Pick explicit choice over env, if available, otherwise return env value received
2727
2828
NOTE: Environment variable should be resolved by the caller.
2929

aws_lambda_powertools/utilities/data_classes/api_gateway_proxy_event.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def account_id(self) -> Optional[str]:
1616
@property
1717
def api_key(self) -> Optional[str]:
1818
"""For API methods that require an API key, this variable is the API key associated with the method request.
19-
For methods that don't require an API key, this variable is null. """
19+
For methods that don't require an API key, this variable is null."""
2020
return self["requestContext"]["identity"].get("apiKey")
2121

2222
@property

aws_lambda_powertools/utilities/data_classes/cognito_user_pool_event.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ def user_attributes(self) -> Dict[str, str]:
589589
@property
590590
def user_not_found(self) -> Optional[bool]:
591591
"""A Boolean that is populated when PreventUserExistenceErrors is set to ENABLED for your user pool client.
592-
A value of true means that the user id (user name, email address, etc.) did not match any existing users. """
592+
A value of true means that the user id (user name, email address, etc.) did not match any existing users."""
593593
return self["request"].get("userNotFound")
594594

595595
@property

aws_lambda_powertools/utilities/idempotency/persistence/dynamodb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,4 +161,4 @@ def _update_record(self, data_record: DataRecord):
161161

162162
def _delete_record(self, data_record: DataRecord) -> None:
163163
logger.debug(f"Deleting record for idempotency key: {data_record.idempotency_key}")
164-
self.table.delete_item(Key={self.key_attr: data_record.idempotency_key},)
164+
self.table.delete_item(Key={self.key_attr: data_record.idempotency_key})

aws_lambda_powertools/utilities/parameters/appconfig.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@ class AppConfigProvider(BaseProvider):
6060

6161
client = None
6262

63-
def __init__(
64-
self, environment: str, application: Optional[str] = None, config: Optional[Config] = None,
65-
):
63+
def __init__(self, environment: str, application: Optional[str] = None, config: Optional[Config] = None):
6664
"""
6765
Initialize the App Config client
6866
"""

aws_lambda_powertools/utilities/parameters/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def get(
9595
if transform is not None:
9696
value = transform_value(value, transform)
9797

98-
self.store[key] = ExpirableValue(value, datetime.now() + timedelta(seconds=max_age),)
98+
self.store[key] = ExpirableValue(value, datetime.now() + timedelta(seconds=max_age))
9999

100100
return value
101101

@@ -164,7 +164,7 @@ def get_multiple(
164164

165165
values[key] = transform_value(value, _transform, raise_on_transform_error)
166166

167-
self.store[key] = ExpirableValue(values, datetime.now() + timedelta(seconds=max_age),)
167+
self.store[key] = ExpirableValue(values, datetime.now() + timedelta(seconds=max_age))
168168

169169
return values
170170

aws_lambda_powertools/utilities/parameters/ssm.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@ class SSMProvider(BaseProvider):
7474

7575
client = None
7676

77-
def __init__(
78-
self, config: Optional[Config] = None,
79-
):
77+
def __init__(self, config: Optional[Config] = None):
8078
"""
8179
Initialize the SSM Parameter Store client
8280
"""

aws_lambda_powertools/utilities/parser/envelopes/dynamodb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111
class DynamoDBStreamEnvelope(BaseEnvelope):
12-
""" DynamoDB Stream Envelope to extract data within NewImage/OldImage
12+
"""DynamoDB Stream Envelope to extract data within NewImage/OldImage
1313
1414
Note: Values are the parsed models. Images' values can also be None, and
1515
length of the list is the record's amount in the original event.

aws_lambda_powertools/utilities/parser/envelopes/sns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class SnsEnvelope(BaseEnvelope):
1616
1717
Note: Records will be parsed the same way so if model is str,
1818
all items in the list will be parsed as str and npt as JSON (and vice versa)
19-
"""
19+
"""
2020

2121
def parse(self, data: Optional[Union[Dict[str, Any], Any]], model: Type[Model]) -> List[Optional[Model]]:
2222
"""Parses records found with model provided

poetry.lock

Lines changed: 23 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ typing_extensions = {version = "^3.7.4.2", optional = true, python= "<3.8" }
3131
[tool.poetry.dev-dependencies]
3232
coverage = {extras = ["toml"], version = "^5.5"}
3333
pytest = "^6.2.2"
34-
black = "^19.10b0"
34+
black = "^20.8b1"
3535
flake8 = "^3.9.0"
3636
flake8-black = "^0.2.1"
3737
flake8-builtins = "^1.5.3"

tests/functional/test_utilities_parameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ def test_ssm_provider_get_multiple_sdk_options_overwrite(mock_name, mock_value,
809809

810810
try:
811811
values = provider.get_multiple(
812-
mock_name, Path="THIS_SHOULD_BE_OVERWRITTEN", Recursive=False, WithDecryption=True,
812+
mock_name, Path="THIS_SHOULD_BE_OVERWRITTEN", Recursive=False, WithDecryption=True
813813
)
814814

815815
stubber.assert_no_pending_responses()

0 commit comments

Comments
 (0)