mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 18:53:55 +08:00
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:
@@ -225,7 +225,7 @@ lint.select = [
|
||||
"TRY203", "TRY400", "TRY401", # try/excepts
|
||||
"RUF008", "RUF100",
|
||||
"TID251",
|
||||
"PLR1704",
|
||||
"PLE", "PLR1704",
|
||||
]
|
||||
lint.ignore = [
|
||||
"E741",
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user