scripts: west_commands: zspdx: cmakecache: Fix linter issue
Fix redundant open mode. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
parent
10e5753d20
commit
0a0e691750
2 changed files with 1 additions and 4 deletions
|
@ -1190,9 +1190,6 @@
|
||||||
"UP015", # https://docs.astral.sh/ruff/rules/redundant-open-modes
|
"UP015", # https://docs.astral.sh/ruff/rules/redundant-open-modes
|
||||||
"UP032", # https://docs.astral.sh/ruff/rules/f-string
|
"UP032", # https://docs.astral.sh/ruff/rules/f-string
|
||||||
]
|
]
|
||||||
"./scripts/west_commands/zspdx/cmakecache.py" = [
|
|
||||||
"UP015", # https://docs.astral.sh/ruff/rules/redundant-open-modes
|
|
||||||
]
|
|
||||||
"./scripts/west_commands/zspdx/cmakefileapi.py" = [
|
"./scripts/west_commands/zspdx/cmakefileapi.py" = [
|
||||||
"F541", # https://docs.astral.sh/ruff/rules/f-string-missing-placeholders
|
"F541", # https://docs.astral.sh/ruff/rules/f-string-missing-placeholders
|
||||||
"I001", # https://docs.astral.sh/ruff/rules/unsorted-imports
|
"I001", # https://docs.astral.sh/ruff/rules/unsorted-imports
|
||||||
|
|
|
@ -11,7 +11,7 @@ def parseCMakeCacheFile(filePath):
|
||||||
log.dbg(f"parsing CMake cache file at {filePath}")
|
log.dbg(f"parsing CMake cache file at {filePath}")
|
||||||
kv = {}
|
kv = {}
|
||||||
try:
|
try:
|
||||||
with open(filePath, "r") as f:
|
with open(filePath) as f:
|
||||||
# should be a short file, so we'll use readlines
|
# should be a short file, so we'll use readlines
|
||||||
lines = f.readlines()
|
lines = f.readlines()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue