ruff: enable RET/PIE/PLW
This commit is contained in:
parent
721a0cd3fc
commit
3cff067035
14 changed files with 80 additions and 75 deletions
|
@ -17,8 +17,7 @@ def parse_org_datetime(s: str) -> datetime:
|
|||
return datetime.strptime(s, fmt)
|
||||
except ValueError:
|
||||
continue
|
||||
else:
|
||||
raise RuntimeError(f"Bad datetime string {s}")
|
||||
raise RuntimeError(f"Bad datetime string {s}")
|
||||
|
||||
|
||||
# TODO I guess want to borrow inspiration from bs4? element type <-> tag; and similar logic for find_one, find_all
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue