1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-09-17 18:31:15 +00:00

Apply PERF

This commit is contained in:
Mo 2023-11-02 20:06:16 +01:00
parent e2d5a920ec
commit 75dff0bde0
2 changed files with 13 additions and 2 deletions

View file

@ -109,7 +109,7 @@ 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 program_part_students in semester_program_part_students.values():
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

View file

@ -47,8 +47,19 @@ select = [
"ERA",
"PL",
"NPY",
"PERF",
]
ignore = [
"E5",
"S3",
"S6",
"RET504",
"PLR0912",
"PLR0915",
"PLW2901",
"PLR2004",
"PERF203",
]
ignore = ["E5", "S3", "S6", "RET504", "PLR0912", "PLR0915", "PLW2901", "PLR2004"]
line-length = 120
[tool.ruff.per-file-ignores]