Skip to content

Commit

Permalink
Merge pull request #839 from secure-systems-lab/dependabot/pip/test-a…
Browse files Browse the repository at this point in the history
…nd-lint-dependencies-e8658e19f9

Bump ruff from 0.4.10 to 0.5.0 in the test-and-lint-dependencies group
  • Loading branch information
lukpueh committed Jul 2, 2024
2 parents f47fc51 + 159d9b4 commit 22b126c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion requirements-lint.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
mypy==1.10.1
ruff==0.4.10
ruff==0.5.0
4 changes: 2 additions & 2 deletions securesystemslib/_gpg/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ def is_available_gnupg(gnupg: str, timeout: Optional[int] = None) -> bool:

gpg_version_cmd = shlex.split(f"{gnupg} --version")
try:
subprocess.run(
gpg_version_cmd, # noqa: S603
subprocess.run( # noqa: S603
gpg_version_cmd,
capture_output=True,
timeout=timeout,
check=True,
Expand Down
8 changes: 4 additions & 4 deletions securesystemslib/_gpg/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ def create_signature(content, keyid=None, homedir=None, timeout=GPG_TIMEOUT):

command = gpg_sign_command(keyarg=keyarg, homearg=homearg)

gpg_process = subprocess.run(
command, # noqa: S603
gpg_process = subprocess.run( # noqa: S603
command,
input=content,
check=False,
capture_output=True,
Expand Down Expand Up @@ -280,8 +280,8 @@ def export_pubkey(keyid, homedir=None, timeout=GPG_TIMEOUT):
# TODO: Consider adopting command error handling from `create_signature`
# above, e.g. in a common 'run gpg command' utility function
command = gpg_export_pubkey_command(keyid=keyid, homearg=homearg)
gpg_process = subprocess.run(
command, # noqa: S603
gpg_process = subprocess.run( # noqa: S603
command,
capture_output=True,
timeout=timeout,
check=True,
Expand Down

0 comments on commit 22b126c

Please sign in to comment.