Skip to content

Commit af64ca7

Browse files
author
Michael Brewer
committed
feat(mypy): move pretty option to makefile
1 parent f00b9d8 commit af64ca7

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

Diff for: Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@ changelog:
8585
docker run -v "${PWD}":/workdir quay.io/git-chglog/git-chglog $$(git describe --abbrev=0 --tag).. > TMP_CHANGELOG.md
8686

8787
mypy:
88-
poetry run mypy aws_lambda_powertools
88+
poetry run mypy --pretty aws_lambda_powertools

Diff for: aws_lambda_powertools/utilities/idempotency/persistence/dynamodb.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def _update_record(self, data_record: DataRecord):
154154
"ExpressionAttributeNames": expression_attr_names,
155155
}
156156

157-
self.table.update_item(**kwargs) # type: ignore
157+
self.table.update_item(**kwargs)
158158

159159
def _delete_record(self, data_record: DataRecord) -> None:
160160
logger.debug(f"Deleting record for idempotency key: {data_record.idempotency_key}")

Diff for: mypy.ini

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ warn_unused_configs=True
44
no_implicit_optional=True
55
warn_redundant_casts=True
66
warn_unused_ignores=True
7-
pretty = True
87
show_column_numbers = True
98
show_error_codes = True
109
show_error_context = True

0 commit comments

Comments
 (0)