|
12 | 12 |
|
13 | 13 | import os |
14 | 14 | import re |
15 | | -import subprocess # noqa: S404 |
| 15 | +import subprocess # ruff: ignore[suspicious-subprocess-import] |
16 | 16 | from argparse import ArgumentParser, Namespace |
17 | 17 | from datetime import UTC, datetime |
18 | 18 | from pathlib import Path |
@@ -79,7 +79,7 @@ def run() -> None: |
79 | 79 | print(new) |
80 | 80 | logs_text = "\n".join(logs) |
81 | 81 | changelog_file.write_text(new + changelog, encoding="utf-8") |
82 | | - subprocess.run(["prek", "run", "--files", str(changelog_file)], check=False) # noqa: S603, S607 |
| 82 | + subprocess.run(["prek", "run", "--files", str(changelog_file)], check=False) # ruff: ignore[subprocess-without-shell-equals-true, start-process-with-partial-path] |
83 | 83 | else: |
84 | 84 | logs_text = "" |
85 | 85 |
|
@@ -144,11 +144,11 @@ def regenerate_changelog( |
144 | 144 | else: |
145 | 145 | content += "\n" |
146 | 146 | changelog_file.write_text(content, encoding="utf-8") |
147 | | - subprocess.run(["prek", "run", "--files", str(changelog_file)], check=False) # noqa: S603, S607 |
| 147 | + subprocess.run(["prek", "run", "--files", str(changelog_file)], check=False) # ruff: ignore[subprocess-without-shell-equals-true, start-process-with-partial-path] |
148 | 148 | print(f"Regenerated changelog for {project} with {len(sections)} releases") |
149 | 149 |
|
150 | 150 |
|
151 | | -def entries_between( # noqa: PLR0913, PLR0917 |
| 151 | +def entries_between( # ruff: ignore[too-many-arguments, too-many-positional-arguments] |
152 | 152 | gh_repo: GitHubRepository, git_repo: Repo, start: str | None, end: str, at: str, project: str |
153 | 153 | ) -> Iterator[str]: |
154 | 154 | pr_re = re.compile(r"(?P<title>.*)[(]#(?P<pr>\d+)[)]") |
|
0 commit comments