Skip to content

Commit 65abd6a

Browse files
authored
chore: address doc linter findings (#731)
Address doc linter findings.
1 parent e6bb11e commit 65abd6a

File tree

6 files changed

+20
-18
lines changed

6 files changed

+20
-18
lines changed

CONTRIBUTING.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ Please read through this document before submitting any issues or pull requests
77
information to effectively respond to your bug report or contribution.
88

99

10+
## Security issue notifications
11+
If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public github issue.
12+
13+
1014
## Reporting Bugs/Feature Requests
1115

1216
We welcome you to use the GitHub issue tracker to report bugs or suggest features.
@@ -50,10 +54,6 @@ For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of
5054
[email protected] with any additional questions or comments.
5155

5256

53-
## Security issue notifications
54-
If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public github issue.
55-
56-
5757
## Licensing
5858

5959
See the [LICENSE](https://github.com/aws/aws-dynamodb-encryption-python/blob/master/LICENSE) file for our project's licensing. We will ask you to confirm the licensing of your contribution.

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,5 +195,5 @@ of the one that the client would normally construct for you.
195195
.. _CryptoConfig: https://aws-dynamodb-encryption-python.readthedocs.io/en/latest/lib/encrypted/config.html
196196
.. _decrypt_dynamodb_item: https://aws-dynamodb-encryption-python.readthedocs.io/en/latest/lib/encrypted/item.html#dynamodb_encryption_sdk.encrypted.item.decrypt_dynamodb_item
197197
.. _transformation functions: https://aws-dynamodb-encryption-python.readthedocs.io/en/latest/lib/tools/transform.html
198-
.. _Security issue notifications: https://github.com/aws/aws-dynamodb-encryption-python/blob/master/CONTRIBUTING.md#user-content-security-issue-notifications
198+
.. _Security issue notifications: https://github.com/aws/aws-dynamodb-encryption-python/blob/master/CONTRIBUTING.md
199199
.. _Support Policy: https://github.com/aws/aws-dynamodb-encryption-python/blob/master/SUPPORT_POLICY.rst

doc/_static/.gitignore

Whitespace-only changes.

src/dynamodb_encryption_sdk/internal/utils.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def decrypt_multi_get(decrypt_method, crypto_config_method, read_method, **kwarg
198198
:param callable decrypt_method: Method to use to decrypt items
199199
:param callable crypto_config_method: Method that accepts ``kwargs`` and provides a :class:`CryptoConfig`
200200
:param callable read_method: Method that reads from the table
201-
:param **kwargs: Keyword arguments to pass to ``read_method``
201+
:param ``**kwargs``: Keyword arguments to pass to ``read_method``
202202
:return: DynamoDB response
203203
:rtype: dict
204204
"""
@@ -220,7 +220,7 @@ def decrypt_get_item(decrypt_method, crypto_config_method, read_method, **kwargs
220220
:param callable decrypt_method: Method to use to decrypt item
221221
:param callable crypto_config_method: Method that accepts ``kwargs`` and provides a :class:`CryptoConfig`
222222
:param callable read_method: Method that reads from the table
223-
:param **kwargs: Keyword arguments to pass to ``read_method``
223+
:param ``**kwargs``: Keyword arguments to pass to ``read_method``
224224
:return: DynamoDB response
225225
:rtype: dict
226226
"""
@@ -244,7 +244,7 @@ def decrypt_batch_get_item(decrypt_method, crypto_config_method, read_method, **
244244
:param callable decrypt_method: Method to use to decrypt items
245245
:param callable crypto_config_method: Method that accepts ``kwargs`` and provides a :class:`CryptoConfig`
246246
:param callable read_method: Method that reads from the table
247-
:param **kwargs: Keyword arguments to pass to ``read_method``
247+
:param ``**kwargs``: Keyword arguments to pass to ``read_method``
248248
:return: DynamoDB response
249249
:rtype: dict
250250
"""
@@ -276,7 +276,7 @@ def encrypt_put_item(encrypt_method, crypto_config_method, write_method, **kwarg
276276
:param callable encrypt_method: Method to use to encrypt items
277277
:param callable crypto_config_method: Method that accepts ``kwargs`` and provides a :class:`CryptoConfig`
278278
:param callable write_method: Method that writes to the table
279-
:param **kwargs: Keyword arguments to pass to ``write_method``
279+
:param ``**kwargs``: Keyword arguments to pass to ``write_method``
280280
:return: DynamoDB response
281281
:rtype: dict
282282
"""
@@ -297,7 +297,7 @@ def encrypt_batch_write_item(encrypt_method, crypto_config_method, write_method,
297297
:param callable encrypt_method: Method to use to encrypt items
298298
:param callable crypto_config_method: Method that accepts a table name string and provides a :class:`CryptoConfig`
299299
:param callable write_method: Method that writes to the table
300-
:param **kwargs: Keyword arguments to pass to ``write_method``
300+
:param ``**kwargs``: Keyword arguments to pass to ``write_method``
301301
:return: DynamoDB response
302302
:rtype: dict
303303
"""

src/dynamodb_encryption_sdk/structures.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def set_index_keys(self, *keys):
176176
SIGN_ONLY -> SIGN_ONLY
177177
ENCRYPT_AND_SIGN -> SIGN_ONLY
178178
179-
:param str *keys: Attribute names to treat as indexed
179+
:param str ``*keys``: Attribute names to treat as indexed
180180
:raises InvalidArgumentError: if a custom action was previously set for any specified
181181
attributes
182182
"""

tox.ini

+9-7
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,20 @@ commands = pytest -n auto --basetemp={envtmpdir} -l {posargs}
4545
[testenv]
4646
passenv =
4747
# Identifies AWS KMS key id to use in integration tests
48-
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID \
48+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID
4949
# Identifies AWS KMS MRK key ids to use in integration tests
50-
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID \
51-
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_2 \
50+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID
51+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_2
5252
# DynamoDB Table to use in integration tests
53-
DDB_ENCRYPTION_CLIENT_TEST_TABLE_NAME \
53+
DDB_ENCRYPTION_CLIENT_TEST_TABLE_NAME
5454
# Pass through AWS credentials
55-
AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_SESSION_TOKEN \
55+
AWS_ACCESS_KEY_ID
56+
AWS_SECRET_ACCESS_KEY
57+
AWS_SESSION_TOKEN
5658
# AWS Role access in CodeBuild is via the contaner URI
57-
AWS_CONTAINER_CREDENTIALS_RELATIVE_URI \
59+
AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
5860
# Pass through AWS profile name (useful for local testing)
59-
AWS_PROFILE \
61+
AWS_PROFILE
6062
# Pass through the default AWS region (used for integration tests)
6163
AWS_DEFAULT_REGION
6264
sitepackages = False

0 commit comments

Comments
 (0)