From 962894c803c3c5699d466d14108b99911eb3fc63 Mon Sep 17 00:00:00 2001 From: gchqdev227 <62302861+gchqdev227@users.noreply.github.com> Date: Wed, 1 Oct 2025 11:42:23 +0100 Subject: [PATCH 1/3] Bumped pre-commit hook versions --- .pre-commit-config.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6f707b8..cf5a3c7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -8,7 +8,7 @@ repos: - id: check-added-large-files args: [--enforce-all, --maxkb=100] - repo: https://github.com/google/yamlfmt - rev: v0.17.0 + rev: v0.17.2 hooks: - id: yamlfmt - repo: https://github.com/hhatto/autopep8 @@ -33,12 +33,12 @@ repos: - id: forbid-crlf - id: forbid-tabs - repo: https://github.com/streetsidesoftware/cspell-cli - rev: v9.0.1 + rev: v9.2.0 hooks: - id: cspell exclude: \.gitignore|.*\.properties - repo: https://github.com/pycqa/flake8 - rev: 7.2.0 + rev: 7.3.0 hooks: - id: flake8 args: [--max-line-length=150] @@ -50,17 +50,17 @@ repos: additional_dependencies: ["tomli"] exclude: examples|tests|.pre-commit-hooks|conf.py - repo: https://github.com/regebro/pyroma - rev: "4.2" + rev: "5.0" hooks: - id: pyroma args: ["-d", "--min=10", "."] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.16.1 + rev: v1.18.2 hooks: - id: mypy additional_dependencies: ["types-docutils", "types-python-dateutil", "types-requests"] - repo: "https://github.com/python-jsonschema/check-jsonschema" - rev: "0.33.0" + rev: "0.34.0" hooks: - id: check-github-workflows - repo: https://github.com/johannsdg/pre-commit-license-headers From fe5c0469e1cf096655063982afc2a077dda51050 Mon Sep 17 00:00:00 2001 From: gchqdev227 <62302861+gchqdev227@users.noreply.github.com> Date: Wed, 1 Oct 2025 11:47:15 +0100 Subject: [PATCH 2/3] Bumped dependencies for building documentation --- docs/requirements.txt | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index 4470213..8a61b08 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,20 +1,21 @@ +accessible-pygments==0.0.5 alabaster==1.0.0 babel==2.17.0 -beautifulsoup4==4.13.4 -certifi==2025.6.15 -charset-normalizer==3.4.2 +beautifulsoup4==4.14.2 +certifi==2025.8.3 +charset-normalizer==3.4.3 docutils==0.21.2 -furo==2024.8.6 +furo==2025.9.25 idna==3.10 imagesize==1.4.1 Jinja2==3.1.6 -MarkupSafe==3.0.2 +MarkupSafe==3.0.3 packaging==25.0 -Pygments==2.19.1 -requests==2.32.4 +Pygments==2.19.2 +requests==2.32.5 roman-numerals-py==3.1.0 snowballstemmer==3.0.1 -soupsieve==2.7 +soupsieve==2.8 Sphinx==8.2.3 sphinx-autodoc-typehints==3.2.0 sphinx-basic-ng==1.0.0b2 @@ -24,5 +25,5 @@ sphinxcontrib-htmlhelp==2.1.0 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==2.0.0 sphinxcontrib-serializinghtml==2.0.0 -typing_extensions==4.14.0 +typing_extensions==4.15.0 urllib3==2.5.0 From 1056f660ab8075e3c48fd3b1ae1c229f4b69beae Mon Sep 17 00:00:00 2001 From: gchqdev227 <62302861+gchqdev227@users.noreply.github.com> Date: Wed, 1 Oct 2025 12:01:09 +0100 Subject: [PATCH 3/3] Bumped dependencies for example tests and updated examples imports --- requirements-tests.txt | 26 +++++++++++++------------- tests/test_examples.py | 9 +++++++-- 2 files changed, 20 insertions(+), 15 deletions(-) diff --git a/requirements-tests.txt b/requirements-tests.txt index 7cc96ab..cb35359 100644 --- a/requirements-tests.txt +++ b/requirements-tests.txt @@ -1,21 +1,21 @@ -boto3==1.38.39 -botocore==1.38.39 -certifi==2025.6.15 -cffi==1.17.1 -charset-normalizer==3.4.2 -cryptography==45.0.4 +boto3==1.40.42 +botocore==1.40.42 +certifi==2025.8.3 +cffi==2.0.0 +charset-normalizer==3.4.3 +cryptography==46.0.2 idna==3.10 Jinja2==3.1.6 jmespath==1.0.1 -MarkupSafe==3.0.2 +MarkupSafe==3.0.3 moto==5.0.12 -pycparser==2.22 +pycparser==2.23 python-dateutil==2.9.0.post0 -PyYAML==6.0.2 -requests==2.32.4 -responses==0.25.7 -s3transfer==0.13.0 +PyYAML==6.0.3 +requests==2.32.5 +responses==0.25.8 +s3transfer==0.14.0 six==1.17.0 urllib3==2.5.0 Werkzeug==3.1.3 -xmltodict==0.14.2 +xmltodict==1.0.2 diff --git a/tests/test_examples.py b/tests/test_examples.py index 987b871..051e962 100644 --- a/tests/test_examples.py +++ b/tests/test_examples.py @@ -7,18 +7,20 @@ import os from pathlib import Path from tempfile import TemporaryDirectory -from typing import Any +from typing import TYPE_CHECKING, Any import unittest import unittest.mock import urllib.parse import warnings try: + import boto3 # noqa: F401 + import botocore # noqa: F401 from dateutil.tz import tzlocal from moto import mock_aws from moto.sagemaker.models import FakePipelineExecution - from moto.sagemaker.responses import TYPE_RESPONSE, SageMakerResponse import requests # noqa: F401 + import urllib3 # noqa: F401 except ImportError: allowed_to_skip = ("CI" not in os.environ) if allowed_to_skip: @@ -35,6 +37,9 @@ from examples.secrets import SecretVersion from examples.xkcd import ComicVersion, XKCDResource +if TYPE_CHECKING: + from moto.sagemaker.responses import TYPE_RESPONSE, SageMakerResponse + def setUpModule() -> None: """Code to run before any single test in the module is run."""