1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-09-17 18:31:15 +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", "active_semester",
"current_login_at", "current_login_at",
] ]
column_details_list = column_list + [ column_details_list = [
*column_list,
"phone_number", "phone_number",
"mobile_phone_number", "mobile_phone_number",
"building", "building",
@ -482,7 +483,8 @@ class StudentView(SecureAdminModelView):
"first_name", "first_name",
"last_name", "last_name",
] ]
column_searchable_list = column_sortable_list + [ column_searchable_list = [
*column_sortable_list,
"uni_email", "uni_email",
"contact_email", "contact_email",
] ]
@ -716,7 +718,8 @@ class ExperimentView(SecureAdminModelView):
"title", "title",
] ]
form_columns = column_list + [ form_columns = [
*column_list,
"description", "description",
"wiki_link", "wiki_link",
"building", "building",

View file

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