From ae6ada41621566424305bb4e71537eb1d8496e8b Mon Sep 17 00:00:00 2001 From: David <49467229+TheSecurityDev@users.noreply.github.com> Date: Thu, 27 Nov 2025 03:52:25 -0600 Subject: [PATCH] lint: Add PLE rule to ruff (#36595) * update linting rules to include new PLE (pylint error) rule * fix lint error --- pyproject.toml | 2 +- system/updated/casync/casync.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3f3804ba6a..3f3c8a72bb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -225,7 +225,7 @@ lint.select = [ "TRY203", "TRY400", "TRY401", # try/excepts "RUF008", "RUF100", "TID251", - "PLR1704", + "PLE", "PLR1704", ] lint.ignore = [ "E741", diff --git a/system/updated/casync/casync.py b/system/updated/casync/casync.py index 7a3303a9e9..79ac26f1c6 100755 --- a/system/updated/casync/casync.py +++ b/system/updated/casync/casync.py @@ -99,7 +99,7 @@ class DirectoryTarChunkReader(BinaryChunkReader): create_casync_tar_package(pathlib.Path(path), pathlib.Path(cache_file)) self.f = open(cache_file, "rb") - return super().__init__(self.f) + super().__init__(self.f) def __del__(self): self.f.close()