From 87766bede56c67977e56ff841512c32ad70f036a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 23 Feb 2026 16:56:39 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v6.0.0) - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 23.9.1 → 26.1.0](https://github.com/psf/black-pre-commit-mirror/compare/23.9.1...26.1.0) - [github.com/pycqa/isort: 5.12.0 → 8.0.0](https://github.com/pycqa/isort/compare/5.12.0...8.0.0) - [github.com/pycqa/flake8: 6.1.0 → 7.3.0](https://github.com/pycqa/flake8/compare/6.1.0...7.3.0) - [github.com/PyCQA/bandit: 1.7.5 → 1.9.3](https://github.com/PyCQA/bandit/compare/1.7.5...1.9.3) --- .pre-commit-config.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e5e2653..925050a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,19 +7,19 @@ ci: # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v6.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml - id: check-added-large-files - - repo: https://github.com/psf/black - rev: 23.9.1 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.1.0 hooks: - id: black args: [--safe, --quiet] - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 8.0.0 hooks: - id: isort name: isort (python) @@ -32,12 +32,12 @@ repos: types: [python] args: [-rn, -sn, --rcfile=pyproject.toml] - repo: https://github.com/pycqa/flake8 - rev: 6.1.0 + rev: 7.3.0 hooks: - id: flake8 additional_dependencies: [flake8-annotations] - repo: https://github.com/PyCQA/bandit - rev: 1.7.5 + rev: 1.9.3 hooks: - id: bandit args: ["-c", "pyproject.toml"] From 00b5ff60f7f752e812d68ae6b769b7c024592d36 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 23 Feb 2026 16:56:57 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- examples/pr_notifier/notifier.py | 2 +- scw_serverless/loader.py | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/examples/pr_notifier/notifier.py b/examples/pr_notifier/notifier.py index b118204..7f15e4f 100644 --- a/examples/pr_notifier/notifier.py +++ b/examples/pr_notifier/notifier.py @@ -111,7 +111,7 @@ def from_github(review: dict[str, Any]): @staticmethod def from_gitlab_action( - action: Literal["approval", "approved", "unapproval", "unapproved"] + action: Literal["approval", "approved", "unapproval", "unapproved"], ): """Creates from a GitLab action.""" return Review( diff --git a/scw_serverless/loader.py b/scw_serverless/loader.py index 75c2938..db9485f 100644 --- a/scw_serverless/loader.py +++ b/scw_serverless/loader.py @@ -46,9 +46,7 @@ def load_app_instance(file: Path) -> Serverless: app_instance = member[1] if not app_instance: # No variable with type "Serverless" found - raise RuntimeError( - f"""Unable to locate an instance of serverless App - in the provided file: {file}.""" - ) + raise RuntimeError(f"""Unable to locate an instance of serverless App + in the provided file: {file}.""") return app_instance