1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-12-04 22:40:30 +00:00

Apply RUF

This commit is contained in:
Mo 2023-11-02 20:10:06 +01:00
parent 75dff0bde0
commit 68289c6a2c
2 changed files with 8 additions and 3 deletions

View file

@ -193,7 +193,8 @@ class UserView(SecureAdminModelView):
"active_semester",
"current_login_at",
]
column_details_list = column_list + [
column_details_list = [
*column_list,
"phone_number",
"mobile_phone_number",
"building",
@ -482,7 +483,8 @@ class StudentView(SecureAdminModelView):
"first_name",
"last_name",
]
column_searchable_list = column_sortable_list + [
column_searchable_list = [
*column_sortable_list,
"uni_email",
"contact_email",
]
@ -716,7 +718,8 @@ class ExperimentView(SecureAdminModelView):
"title",
]
form_columns = column_list + [
form_columns = [
*column_list,
"description",
"wiki_link",
"building",

View file

@ -48,6 +48,7 @@ select = [
"PL",
"NPY",
"PERF",
"RUF",
]
ignore = [
"E5",
@ -59,6 +60,7 @@ ignore = [
"PLW2901",
"PLR2004",
"PERF203",
"RUF012",
]
line-length = 120