Skip to content

Commit 9ed7360

Browse files
committed
lint: fix pylint warnings
1 parent b88b739 commit 9ed7360

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

csmock/plugins/snyk.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def fetch_snyk(results):
115115
# make sure the cache directory exists
116116
os.makedirs(cache_dir, mode=0o755, exist_ok=True)
117117
except OSError:
118-
results.error("failed to create snyk cache directory: %s" % cache_dir)
118+
results.error(f"failed to create snyk cache directory: {cache_dir}")
119119
return 1
120120

121121
url = args.snyk_bin_url
@@ -128,7 +128,7 @@ def fetch_snyk(results):
128128
# fetch the binary executable
129129
ec = results.exec_cmd(["curl", "-Lfso", snyk_bin, url])
130130
if 0 != ec:
131-
results.error("failed to download snyk binary executable: %s" % url)
131+
results.error(f"failed to download snyk binary executable: {url}")
132132
return ec
133133

134134
# add eXecute permission on the downloaded file

0 commit comments

Comments
 (0)