diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f12fe27b41..4da4b993b2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,13 +1,13 @@ exclude: ^(.github|.changes|docs/|boto3/compat.py|boto3/data|CHANGELOG.rst) repos: - repo: 'https://github.com/pre-commit/pre-commit-hooks' - rev: v4.3.0 + rev: v4.5.0 hooks: - id: check-yaml - id: end-of-file-fixer - id: trailing-whitespace - repo: 'https://github.com/asottile/pyupgrade' - rev: v2.34.0 + rev: v3.15.0 hooks: - id: pyupgrade args: @@ -17,10 +17,10 @@ repos: hooks: - id: isort - repo: 'https://github.com/psf/black' - rev: 22.3.0 + rev: 23.11.0 hooks: - id: black - repo: 'https://github.com/pycqa/flake8' - rev: 4.0.1 + rev: 6.1.0 hooks: - id: flake8 diff --git a/boto3/docs/method.py b/boto3/docs/method.py index b7520088c2..8613367473 100644 --- a/boto3/docs/method.py +++ b/boto3/docs/method.py @@ -28,7 +28,6 @@ def document_model_driven_resource_method( resource_action_model=None, include_signature=True, ): - document_model_driven_method( section=section, method_name=method_name, diff --git a/boto3/dynamodb/conditions.py b/boto3/dynamodb/conditions.py index 442f11c4cd..74b3e8e783 100644 --- a/boto3/dynamodb/conditions.py +++ b/boto3/dynamodb/conditions.py @@ -23,7 +23,6 @@ class ConditionBase: - expression_format = '' expression_operator = '' has_grouped_values = False diff --git a/boto3/resources/factory.py b/boto3/resources/factory.py index 5d9531b86e..4cdd2f01dd 100644 --- a/boto3/resources/factory.py +++ b/boto3/resources/factory.py @@ -370,6 +370,7 @@ def _create_autoload_property( Creates a new property on the resource to lazy-load its value via the resource's ``load`` method (if it exists). """ + # The property loader will check to see if this resource has already # been loaded and return the cached value if possible. If not, then # it first checks to see if it CAN be loaded (raise if not), then diff --git a/boto3/session.py b/boto3/session.py index bdda65ad41..37890ada85 100644 --- a/boto3/session.py +++ b/boto3/session.py @@ -478,7 +478,6 @@ def resource( return cls(client=client) def _register_default_handlers(self): - # S3 customizations self._session.register( 'creating-client-class.s3', diff --git a/tests/functional/docs/test_smoke.py b/tests/functional/docs/test_smoke.py index b672b1722c..493c426663 100644 --- a/tests/functional/docs/test_smoke.py +++ b/tests/functional/docs/test_smoke.py @@ -74,7 +74,6 @@ def test_documentation( # If the service has resources, make sure the service resource # is at least documented. if service_name in available_resources: - resource = boto3.resource(service_name, 'us-east-1') _assert_has_resource_documentation( generated_docs, service_name, resource diff --git a/tests/functional/dynamodb/test_table.py b/tests/functional/dynamodb/test_table.py index e27e1bc08a..5ef25d9a68 100644 --- a/tests/functional/dynamodb/test_table.py +++ b/tests/functional/dynamodb/test_table.py @@ -19,7 +19,6 @@ class TestTableResourceCustomizations(unittest.TestCase): - maxDiff = None def setUp(self): diff --git a/tests/unit/dynamodb/test_table.py b/tests/unit/dynamodb/test_table.py index f78da6f4e2..21473dcb0f 100644 --- a/tests/unit/dynamodb/test_table.py +++ b/tests/unit/dynamodb/test_table.py @@ -15,7 +15,6 @@ class BaseTransformationTest(unittest.TestCase): - maxDiff = None def setUp(self):