From 4cdaf81b3f2e3a329df1e2d954d7f3812d592af3 Mon Sep 17 00:00:00 2001 From: codefiles <11915375+codefiles@users.noreply.github.com> Date: Tue, 7 Apr 2026 08:38:04 -0400 Subject: [PATCH 1/2] Bump ruff target-version to Python 3.14 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 6d5d1fb854..6e350df504 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -172,7 +172,7 @@ score = false init-import = true [tool.ruff] -target-version = "py312" +target-version = "py314" line-length = 160 [tool.ruff.format] From 75c489c8562bbabfea3f70926a67c2f56ce07ede Mon Sep 17 00:00:00 2001 From: codefiles <11915375+codefiles@users.noreply.github.com> Date: Tue, 7 Apr 2026 08:47:31 -0400 Subject: [PATCH 2/2] Update exception syntax to pass ruff format --- archinstall/lib/command.py | 2 +- archinstall/lib/models/network.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/archinstall/lib/command.py b/archinstall/lib/command.py index 439ed6657b..a9d65cb068 100644 --- a/archinstall/lib/command.py +++ b/archinstall/lib/command.py @@ -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 diff --git a/archinstall/lib/models/network.py b/archinstall/lib/models/network.py index 486bd0d942..71f3dca2b0 100644 --- a/archinstall/lib/models/network.py +++ b/archinstall/lib/models/network.py @@ -218,7 +218,7 @@ def from_wpa_cli_output(cls, list_networks: str) -> list[Self]: flags=flags, ) ) - except (ValueError, IndexError): + except ValueError, IndexError: debug('Parsing error for network output') return networks