lint: Add PLE rule to ruff (#36595)

* update linting rules to include new PLE (pylint error) rule

* fix lint error
This commit is contained in:
David
2025-11-27 03:52:25 -06:00
committed by GitHub
parent b8d55987c2
commit ae6ada4162
2 changed files with 2 additions and 2 deletions

View File

@@ -225,7 +225,7 @@ lint.select = [
"TRY203", "TRY400", "TRY401", # try/excepts
"RUF008", "RUF100",
"TID251",
"PLR1704",
"PLE", "PLR1704",
]
lint.ignore = [
"E741",

View File

@@ -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()