ruff: enable RET/PIE/PLW
This commit is contained in:
parent
bd1e5d2f11
commit
9fd4227abf
14 changed files with 80 additions and 75 deletions
|
@ -43,8 +43,7 @@ class Photo(NamedTuple):
|
|||
for bp in config.paths:
|
||||
if self.path.startswith(bp):
|
||||
return self.path[len(bp):]
|
||||
else:
|
||||
raise RuntimeError(f"Weird path {self.path}, can't match against anything")
|
||||
raise RuntimeError(f"Weird path {self.path}, can't match against anything")
|
||||
|
||||
@property
|
||||
def name(self) -> str:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue