diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 8ac6b8c..703d538 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,6 +1,10 @@ version: 2 updates: - package-ecosystem: "github-actions" - directory: "/" + directory: ".github/workflows" schedule: - interval: "monthly" + interval: "weekly" + groups: + actions: + patterns: + - "*" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3d441f3..3a08073 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: v4.5.0 + rev: v4.6.0 hooks: - id: check-added-large-files - id: check-case-conflict @@ -12,17 +12,17 @@ repos: exclude: ".*(data.*|extern.*|licenses.*|.*.fits)$" - repo: https://github.com/psf/black-pre-commit-mirror - rev: 23.11.0 + rev: 24.8.0 hooks: - id: black - repo: https://github.com/scientific-python/cookie - rev: 2023.11.17 + rev: 2024.08.19 hooks: - id: sp-repo-review - repo: https://github.com/codespell-project/codespell - rev: v2.2.6 + rev: v2.3.0 hooks: - id: codespell args: ["--write-changes"] @@ -30,7 +30,7 @@ repos: - tomli - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.1.7" + rev: "v0.6.3" hooks: - id: ruff args: ["--fix", "--show-fixes"] diff --git a/extension_helpers/tests/__init__.py b/extension_helpers/tests/__init__.py index 62b53c8..02f3bfc 100644 --- a/extension_helpers/tests/__init__.py +++ b/extension_helpers/tests/__init__.py @@ -29,10 +29,8 @@ def run_cmd(cmd, args, path=None, raise_error=True): if raise_error and return_code != 0: raise RuntimeError( - "The command `{}` with args {!r} exited with code {}.\n" - "Stdout:\n\n{}\n\nStderr:\n\n{}".format( - cmd, list(args), return_code, streams[0], streams[1] - ) + f"The command `{cmd}` with args {list(args)!r} exited with code {return_code}.\n" + f"Stdout:\n\n{streams[0]}\n\nStderr:\n\n{streams[1]}" ) return streams + (return_code,) diff --git a/extension_helpers/tests/py311_backports.py b/extension_helpers/tests/py311_backports.py index c235b81..3632947 100644 --- a/extension_helpers/tests/py311_backports.py +++ b/extension_helpers/tests/py311_backports.py @@ -48,6 +48,7 @@ agrees to be bound by the terms and conditions of this License Agreement. """ + import os from contextlib import AbstractContextManager