Enable flake8-bugbear linting rules (#267)

See https://docs.astral.sh/ruff/rules/#flake8-bugbear-b.
This commit is contained in:
Marc Wrobel
2023-12-30 10:03:55 +01:00
parent 26f8db809c
commit 0e8fe135e4
13 changed files with 19 additions and 21 deletions

View File

@@ -21,7 +21,7 @@ for detail_id in [f"detail{row['id']}" for row in sles_header_rows]:
for row in minor_versions_table.find_all("tr")[1:]:
# For each minor release there is an FCS date, general support end date and LTSS end date
cells = row.find_all("td")
version = cells[0].text.strip("SUSE Linux Enterprise Server ").replace(' SP', '.')
version = cells[0].text.replace("SUSE Linux Enterprise Server ", '').replace(' SP', '.')
date_str = cells[1].text
try: