Replace bandit with ruff (#93200)

This commit is contained in:
Ville Skyttä
2023-06-08 23:46:04 +03:00
committed by GitHub
parent f7938c940c
commit ca936d0b38
16 changed files with 36 additions and 61 deletions

View File

@ -278,9 +278,11 @@ def basic_sanity_check(cursor: SQLiteCursor) -> bool:
for table in TABLES_TO_CHECK:
if table in (TABLE_RECORDER_RUNS, TABLE_SCHEMA_CHANGES):
cursor.execute(f"SELECT * FROM {table};") # nosec # not injection
cursor.execute(f"SELECT * FROM {table};") # noqa: S608 # not injection
else:
cursor.execute(f"SELECT * FROM {table} LIMIT 1;") # nosec # not injection
cursor.execute(
f"SELECT * FROM {table} LIMIT 1;" # noqa: S608 # not injection
)
return True