1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-11-08 21:21:06 +00:00

Unused iteration variables

This commit is contained in:
Mo 2023-11-02 18:55:05 +01:00
parent 907951a49f
commit 45258fa4c6
2 changed files with 4 additions and 4 deletions

View file

@ -113,12 +113,12 @@ def _generate_test_db():
add_part_student(student, be_2_ws_part)
program_groups = {program: [] for program in programs}
for semester, program_part_students in semester_program_part_students.items():
for _semester, program_part_students in semester_program_part_students.items():
for program, part_students in program_part_students.items():
if len(part_students) % 2 == 1:
# Add the first 3 students into a special group for an uneven number of students
group_part_students = []
for i in range(3):
for _ in range(3):
if len(part_students) == 0:
break
@ -212,7 +212,7 @@ def _generate_test_db():
)
semester_experiments = []
for i in range(num_assistant_experiments):
for _ in range(num_assistant_experiments):
if len(all_semester_experiments) == 0:
break

View file

@ -27,7 +27,7 @@ requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
select = ["E1", "E4", "E7", "E9", "W", "F", "I", "UP"]
select = ["E1", "E4", "E7", "E9", "W", "F", "I", "UP", "YTT", "S1", "S5", "S7", "B"]
line-length = 120
[tool.ruff.per-file-ignores]