Skip to content

Commit

Permalink
nosec multiline and imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Morris committed Jul 1, 2024
1 parent 7353023 commit 5dd1ee3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions scripts/publish_bumpver_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
- git tag --delete 1.0.0 2.0.0 2.1.0 2.1.1 2.1.2 2.1.2.dev0 2.1.2.dev1
"""

import subprocess
import subprocess # nosec
import sys
from typing import List, Set

Expand Down Expand Up @@ -76,9 +76,9 @@ def main():
elif len(version_components) == 3:
if component == "dev":
# increment patch and begin at dev0 (e.g. 1.0.0 -> 1.0.1.dev0)
update_output = subprocess.run(
update_output = subprocess.run( # nosec
["bumpver", "update", "--patch", "--tag=dev", "-n"]
) # nosec
)
else:
update_output = subprocess.run(["bumpver", "update", f"--{component}", "-n"]) # nosec

Expand Down
6 changes: 3 additions & 3 deletions scripts/tag_with_current_version.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# This file is intended to be called by a github workflow
import subprocess
import subprocess # nosec

import toml


def main():
version: str = toml.load("pyproject.toml")["project"]["version"]
tag_output: subprocess.CompletedProcess = subprocess.run(
tag_output: subprocess.CompletedProcess = subprocess.run( # nosec
["git", "tag", f"v{version}"]
) # nosec
)
if tag_output.returncode != 0:
raise RuntimeError("failed to tag")

Expand Down

0 comments on commit 5dd1ee3

Please sign in to comment.