diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 88c1e3c..1c5324e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -83,16 +83,16 @@ repos: |tests/.* )$ - repo: "https://github.com/pre-commit/pre-commit-hooks" - rev: "v4.6.0" + rev: "v6.0.0" hooks: - id: "end-of-file-fixer" - id: "trailing-whitespace" - repo: "https://github.com/DavidAnson/markdownlint-cli2" - rev: "v0.13.0" + rev: "v0.20.0" hooks: - id: "markdownlint-cli2" - repo: "https://github.com/srstevenson/nb-clean" - rev: "3.3.0" + rev: "4.0.1" hooks: - id: "nb-clean" args: @@ -108,7 +108,7 @@ repos: |tests/.* )$ - repo: "https://github.com/charliermarsh/ruff-pre-commit" - rev: "v0.4.8" + rev: "v0.14.10" hooks: - id: "ruff" args: ["--extend-fixable", "PIE790"] diff --git a/scripts/captivate_tools/add_changes.py b/scripts/captivate_tools/add_changes.py index c40c86c..2737389 100644 --- a/scripts/captivate_tools/add_changes.py +++ b/scripts/captivate_tools/add_changes.py @@ -20,9 +20,7 @@ def add_change(typ: ChangeType = "change"): change = get_change(owner, repo, issue) content = quote(f"{change.name}\n") run( - split( # noqa: S603 - f"""towncrier create --content {content} {change.id}.{typ}.md""" - ), + split(f"""towncrier create --content {content} {change.id}.{typ}.md"""), check=True, ) @@ -96,7 +94,7 @@ def query_gh_issue( ) -> dict[str, Any]: """Query GitHub for an issue.""" result = run( - [ # noqa: S603, S607 + [ # noqa: S607 "gh", "api", "graphql",