Skip to content

Commit 9ac89a1

Browse files
author
Lucas McDonald
committed
m
1 parent 9a8164e commit 9ac89a1

File tree

4 files changed

+16
-10
lines changed

4 files changed

+16
-10
lines changed

.github/workflows/pull.yml

+5
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ jobs:
6969
uses: ./.github/workflows/ci_examples_python.yml
7070
with:
7171
dafny: ${{needs.getVersion.outputs.version}}
72+
pr-ci-python-static-analysis:
73+
needs: getVersion
74+
uses: ./.github/workflows/ci_static_analysis_python.yml
75+
with:
76+
dafny: ${{needs.getVersion.outputs.version}}
7277
pr-ci-net-test-vectors:
7378
needs: getVersion
7479
uses: ./.github/workflows/ci_test_vector_net.yml

.github/workflows/push.yml

+5
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ jobs:
6666
uses: ./.github/workflows/ci_examples_python.yml
6767
with:
6868
dafny: ${{needs.getVersion.outputs.version}}
69+
pr-ci-python-static-analysis:
70+
needs: getVersion
71+
uses: ./.github/workflows/ci_static_analysis_python.yml
72+
with:
73+
dafny: ${{needs.getVersion.outputs.version}}
6974
pr-ci-net-test-vectors:
7075
needs: getVersion
7176
uses: ./.github/workflows/ci_test_vector_net.yml

DynamoDbEncryption/runtimes/python/src/aws_dbesdk_dynamodb/encrypted/client.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ def transact_get_items(self, **kwargs) -> dict[str, Any]:
290290
def transact_write_items(self, **kwargs) -> dict[str, Any]:
291291
"""
292292
Perform multiple write operations in a single transaction.
293-
293+
294294
For put operations, encrypts items before writing.
295295
296296
The parameters and return value match the boto3 DynamoDB transact_write_items API:
@@ -333,7 +333,7 @@ def update_item(self, **kwargs):
333333
def get_paginator(self, operation_name: str) -> EncryptedPaginator | botocore.client.Paginator:
334334
"""
335335
Get a paginator from the underlying client.
336-
336+
337337
If the paginator requested is for "scan" or "query", the paginator returned will
338338
transparently decrypt the returned items.
339339
@@ -444,4 +444,4 @@ def _boto_client_attr_name(self) -> str:
444444
str: '_client'
445445
446446
"""
447-
return "_client"
447+
return "_client"

DynamoDbEncryption/runtimes/python/tox.ini

+3-7
Original file line numberDiff line numberDiff line change
@@ -52,24 +52,20 @@ commands =
5252
--cov-report=term-missing \
5353
--cov-fail-under=100
5454

55-
[testenv:ruff-src]
55+
[testenv:ruff]
5656
commands = ruff check src/aws_dbesdk_dynamodb/ {posargs}
5757

58-
[testenv:ruff-test]
59-
commands = ruff check test/ {posargs}
60-
6158
# Linters
6259
[testenv:blacken]
6360
basepython = python3
6461
commands =
6562
black --line-length 120 \
66-
src/aws_dbesdk_dynamodb/ \
67-
test/ \
63+
src/aws_dbesdk_dynamodb/
6864
{posargs}
6965

7066
[testenv:black-check]
7167
basepython = python3
7268
deps =
7369
{[testenv:blacken]deps}
7470
commands =
75-
{[testenv:blacken-src]commands} --diff
71+
{[testenv:blacken]commands} --diff

0 commit comments

Comments
 (0)