Skip to content

Commit

Permalink
fix sonarcube issues
Browse files Browse the repository at this point in the history
  • Loading branch information
benvanwerkhoven committed Jun 28, 2024
1 parent 2458357 commit d0999ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions kernel_tuner/cache/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ def convert_cache(cache: dict, conversion_functions=None, versions=None, target_

if semver.VersionInfo.parse(version).compare(target_version) > 0:
raise ValueError(
f"Target version ({target_version}) should not be " f"smaller than the cache's version ({version})"
f"Target version ({target_version}) should not be smaller than the cache's version ({version})"
)

if version not in versions:
raise ValueError(f"Version ({version}) should be a real " f"existing version")
raise ValueError(f"Version ({version}) should be a real existing version")

if target_version not in versions:
raise ValueError(f"Target version ({target_version}) should be " f"a real existing version")
raise ValueError(f"Target version ({target_version}) should be a real existing version")

# Main convert loop
while version != target_version:
Expand Down
2 changes: 1 addition & 1 deletion kernel_tuner/scripts/ktcache.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
- `convert`: using the functionality from convert.py one can convert to a specified version.
Within conversion (all required yet nonpositional arguments):
- `-i/--infile`: the input file to read from.
- `-T/--target`: The version to convert to.
- `-T/--target`: The version to convert to.
- `--out/--output`: The converted output file.
- `--force-version-absence`: allow unversioned cachefiles to be converted.
Expand Down

0 comments on commit d0999ed

Please sign in to comment.