Enable more SIM ruff rules (#113015)
* SIM101 SIM103 * SIM107 SIM109 * SIM110 * SIM112 SIM113 * SIM115 * SIM116 * Fix * Fix * Fix
This commit is contained in:
parent
e96ef4613c
commit
cddce0ce0d
17 changed files with 41 additions and 70 deletions
|
@ -70,10 +70,7 @@ IGNORE_SUFFIXES = [
|
|||
|
||||
def contains_ignored_suffix(unique_id: str) -> bool:
|
||||
"""Return true if the unique_id ends with an ignored suffix."""
|
||||
for suffix in IGNORE_SUFFIXES:
|
||||
if suffix.lower() in unique_id.lower():
|
||||
return True
|
||||
return False
|
||||
return any(suffix.lower() in unique_id.lower() for suffix in IGNORE_SUFFIXES)
|
||||
|
||||
|
||||
@patch(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue