Skip to content

Commit 403fc32

Browse files
committed
fix: remove an unused noqa directive in the release script
1 parent 556a238 commit 403fc32

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

changelog.d/+bcea2f0b.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove an unused `noqa` directive in `scripts/release.py` when the project version is provided dynamically.

scripts/release.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# ///
88
"""Make a release."""
99

10-
# ruff: noqa: S603, T201
10+
# ruff: noqa: T201
1111

1212
from __future__ import annotations
1313

@@ -89,7 +89,7 @@ def update_version(version: str | None = None, bump: str | None = None) -> str:
8989
cmd.extend(("--bump", bump))
9090

9191
try:
92-
version_json = subprocess.check_output(cmd)
92+
version_json = subprocess.check_output(cmd) # noqa: S603
9393

9494
except subprocess.CalledProcessError:
9595
print_err("An error occurred while bumping the version.")

template/scripts/release.py.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# ///
1313
"""Make a release."""
1414

15-
# ruff: noqa: S603, T201
15+
# ruff: noqa: T201
1616

1717
from __future__ import annotations
1818

@@ -106,7 +106,7 @@ def update_version(version: str | None = None, bump: str | None = None) -> str:
106106
cmd.extend(("--bump", bump))
107107

108108
try:
109-
version_json = subprocess.check_output(cmd)
109+
version_json = subprocess.check_output(cmd) # noqa: S603
110110

111111
except subprocess.CalledProcessError:
112112
print_err("An error occurred while bumping the version.")

0 commit comments

Comments
 (0)