chore: enforce more ruff rules (#31447)

Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
This commit is contained in:
Maxime Beauchemin
2024-12-18 17:41:34 -08:00
committed by GitHub
parent 9da65d6bfd
commit e51b95ffa8
375 changed files with 1821 additions and 1718 deletions

View File

@@ -38,7 +38,7 @@ def wrapped(*args, **kwargs):
("2.1.0rc1", "This tag 2.1.0rc1 is not a valid release version. Not tagging."),
(
"",
"Missing tag parameter, usage: ./scripts/tag_latest_release.sh <GITHUB_TAG_NAME>",
"Missing tag parameter, usage: ./scripts/tag_latest_release.sh <GITHUB_TAG_NAME>", # noqa: E501
),
("2.1", "This tag 2.1 is not a valid release version. Not tagging."),
(
@@ -53,7 +53,7 @@ def test_tag_latest_release(tag, expected_output):
) as subprocess_mock:
result = BashMock.tag_latest_release(tag)
subprocess_mock.assert_called_once_with(
subprocess_mock.assert_called_once_with( # noqa: S604
f"./scripts/tag_latest_release.sh {tag} --dry-run",
shell=True,
capture_output=True,