Enable most flake8-commas rules in ruff and fix warning (#3122)

This commit is contained in:
correctmost 2025-01-15 05:30:13 +00:00 committed by GitHub
parent 41215741f0
commit c94d0a56d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -618,7 +618,7 @@ def suggest_lvm_layout(
root_vol_size = disk.Size(20, disk.Unit.GiB, disk.SectorSize.default())
home_vol_size = total_vol_available - root_vol_size
lvm_vol_group = disk.LvmVolumeGroup(vg_grp_name, pvs=other_part, )
lvm_vol_group = disk.LvmVolumeGroup(vg_grp_name, pvs=other_part)
root_vol = disk.LvmVolume(
status=disk.LvmVolumeStatus.Create,

View File

@ -182,6 +182,7 @@ select = [
"ASYNC", # flake8-async
"B", # flake8-bugbear
"C90", # mccabe
"COM", # flake8-commas
"DTZ", # flake8-datetimez
"E", # pycodestyle errors
"EXE", # flake8-executable
@ -211,6 +212,7 @@ ignore = [
"B008", # function-call-in-default-argument
"B904", # raise-without-from-inside-except
"B905", # zip-without-explicit-strict
"COM812", # missing-trailing-comma
"PLC0415", # import-outside-top-level
"PLC1901", # compare-to-empty-string
"PLW1514", # unspecified-encoding