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"] 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