Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #22

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,16 @@ repos:
|tests/.*
)$
- repo: "https://github.com/pre-commit/pre-commit-hooks"
rev: "v4.6.0"
rev: "v5.0.0"
hooks:
- id: "end-of-file-fixer"
- id: "trailing-whitespace"
- repo: "https://github.com/DavidAnson/markdownlint-cli2"
rev: "v0.13.0"
rev: "v0.17.1"
hooks:
- id: "markdownlint-cli2"
- repo: "https://github.com/srstevenson/nb-clean"
rev: "3.3.0"
rev: "4.0.1"
hooks:
- id: "nb-clean"
args:
Expand All @@ -114,7 +114,7 @@ repos:
|tests/.*
)$
- repo: "https://github.com/charliermarsh/ruff-pre-commit"
rev: "v0.4.10"
rev: "v0.8.6"
hooks:
- id: "ruff"
args: ["--extend-fixable", "PIE790"]
Expand Down
4 changes: 2 additions & 2 deletions scripts/boilercine_tools/add_changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
change = get_change(owner, repo, issue)
content = quote(f"{change.name}\n")
run(
split(f"""towncrier create --content {content} {change.id}.{typ}.md"""), # noqa: S603
split(f"""towncrier create --content {content} {change.id}.{typ}.md"""),

Check failure on line 23 in scripts/boilercine_tools/add_changes.py

View workflow job for this annotation

GitHub Actions / ruff (ubuntu-22.04, 3.11)

Ruff (S603)

scripts/boilercine_tools/add_changes.py:23:9: S603 `subprocess` call: check for execution of untrusted input
check=True,
)

Expand Down Expand Up @@ -94,17 +94,17 @@
) -> dict[str, Any]:
"""Query GitHub for an issue."""
result = run(
[ # noqa: S607, S603
[ # noqa: S607
"gh",
"api",
"graphql",
"-f",
sanitize(f"""query= {{
repository(owner:"{owner}", name:"{repo}") {{
issue(number: {issue}) {{ {sanitize(query)} }}
}}
}}"""),
],

Check failure on line 107 in scripts/boilercine_tools/add_changes.py

View workflow job for this annotation

GitHub Actions / ruff (ubuntu-22.04, 3.11)

Ruff (S603)

scripts/boilercine_tools/add_changes.py:97:9: S603 `subprocess` call: check for execution of untrusted input
capture_output=True,
text=True,
check=False,
Expand Down
Loading