From 7609a1634e2dcb7e714fe3b6ebf10ef58bc50532 Mon Sep 17 00:00:00 2001 From: codefiles <11915375+codefiles@users.noreply.github.com> Date: Tue, 7 Apr 2026 09:09:14 -0400 Subject: [PATCH] Bump ruff target-version to Python 3.14 (#4390) * Bump ruff target-version to Python 3.14 * Update exception syntax to pass ruff format --- archinstall/lib/command.py | 2 +- archinstall/lib/models/network.py | 2 +- pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/archinstall/lib/command.py b/archinstall/lib/command.py index 439ed665..a9d65cb0 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 486bd0d9..71f3dca2 100644 --- a/archinstall/lib/models/network.py +++ b/archinstall/lib/models/network.py @@ -218,7 +218,7 @@ class WifiConfiguredNetwork: flags=flags, ) ) - except (ValueError, IndexError): + except ValueError, IndexError: debug('Parsing error for network output') return networks diff --git a/pyproject.toml b/pyproject.toml index 6d5d1fb8..6e350df5 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]