Bump ruff target-version to Python 3.14 (#4390)

* Bump ruff target-version to Python 3.14

* Update exception syntax to pass ruff format
This commit is contained in:
codefiles 2026-04-07 09:09:14 -04:00 committed by GitHub
parent f37ae8b282
commit 7609a1634e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -379,6 +379,6 @@ def _append_log(file: str, content: str) -> None:
if change_perm:
path.chmod(stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP)
except (PermissionError, FileNotFoundError):
except PermissionError, FileNotFoundError:
# If the file does not exist, ignore the error
pass

View File

@ -218,7 +218,7 @@ class WifiConfiguredNetwork:
flags=flags,
)
)
except (ValueError, IndexError):
except ValueError, IndexError:
debug('Parsing error for network output')
return networks

View File

@ -172,7 +172,7 @@ score = false
init-import = true
[tool.ruff]
target-version = "py312"
target-version = "py314"
line-length = 160
[tool.ruff.format]