ruff: process remaining existing checks and suppress the annoying ones
This commit is contained in:
parent
c248aa7496
commit
1774ed126b
6 changed files with 38 additions and 8 deletions
|
@ -27,7 +27,7 @@ class Ext:
|
|||
def is_compressed(p: Path) -> bool:
|
||||
# todo kinda lame way for now.. use mime ideally?
|
||||
# should cooperate with kompress.kopen?
|
||||
return any(p.name.endswith(ext) for ext in {Ext.xz, Ext.zip, Ext.lz4, Ext.zstd, Ext.zst, Ext.targz})
|
||||
return any(p.name.endswith(ext) for ext in [Ext.xz, Ext.zip, Ext.lz4, Ext.zstd, Ext.zst, Ext.targz])
|
||||
|
||||
|
||||
def _zstd_open(path: Path, *args, **kwargs) -> IO:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue