Skip to content

Commit 8d25be6

Browse files
committed
Run black v23
1 parent f28602f commit 8d25be6

22 files changed

+2
-22
lines changed

manage.py

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import sys
44

55
if __name__ == "__main__":
6-
76
if "test" in sys.argv:
87
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "myhpi.tests.settings")
98
else:

myhpi/core/migrations/0001_initial.py

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010

1111
class Migration(migrations.Migration):
12-
1312
initial = True
1413

1514
dependencies = [

myhpi/core/migrations/0002_rootpage.py

-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ def create_homepage(apps, schema_editor):
5656

5757

5858
class Migration(migrations.Migration):
59-
6059
run_before = [
6160
("wagtailcore", "0053_locale_model"),
6261
]

myhpi/core/migrations/0003_minutes_guests_alter_informationpage_body_and_more.py

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99

1010
class Migration(migrations.Migration):
11-
1211
dependencies = [
1312
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
1413
("core", "0002_rootpage"),

myhpi/core/migrations/0004_minuteslabel_color.py

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
class Migration(migrations.Migration):
7-
87
dependencies = [
98
("core", "0003_minutes_guests_alter_informationpage_body_and_more"),
109
]

myhpi/core/migrations/0005_redirectmenuitem.py

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66

77
class Migration(migrations.Migration):
8-
98
dependencies = [
109
("core", "0004_minuteslabel_color"),
1110
]

myhpi/core/migrations/0006_informationpage_attachments_minutes_attachments_and_more.py

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66

77
class Migration(migrations.Migration):
8-
98
dependencies = [
109
("wagtaildocs", "0012_uploadeddocument"),
1110
("core", "0005_redirectmenuitem"),

myhpi/core/migrations/0007_alter_footer_column_1_alter_footer_column_2_and_more.py

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
class Migration(migrations.Migration):
9-
109
dependencies = [
1110
("core", "0006_informationpage_attachments_minutes_attachments_and_more"),
1211
]

myhpi/core/widgets.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def optgroups(self, name, value, attrs=None):
1717
has_selected = False
1818

1919
attachments = []
20-
for (option_value, option_label) in self.choices:
20+
for option_value, option_label in self.choices:
2121
if not self.current_user:
2222
attachments.append((option_value, option_label))
2323
else:

myhpi/polls/migrations/0001_initial.py

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
class Migration(migrations.Migration):
9-
109
initial = True
1110

1211
dependencies = [

myhpi/polls/migrations/0002_auto_20210612_1217.py

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66

77
class Migration(migrations.Migration):
8-
98
dependencies = [
109
("polls", "0001_initial"),
1110
]

myhpi/polls/migrations/0003_auto_20210612_1231.py

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66

77
class Migration(migrations.Migration):
8-
98
dependencies = [
109
("polls", "0002_auto_20210612_1217"),
1110
]

myhpi/polls/migrations/0004_poll_participants.py

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
class Migration(migrations.Migration):
9-
109
dependencies = [
1110
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
1211
("polls", "0003_auto_20210612_1231"),

myhpi/polls/migrations/0005_remove_pollchoice_description.py

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
class Migration(migrations.Migration):
7-
87
dependencies = [
98
("polls", "0004_poll_participants"),
109
]

myhpi/polls/migrations/0006_auto_20210612_1547.py

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
class Migration(migrations.Migration):
7-
87
dependencies = [
98
("polls", "0005_remove_pollchoice_description"),
109
]

myhpi/polls/migrations/0007_auto_20210612_1620.py

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66

77
class Migration(migrations.Migration):
8-
98
dependencies = [
109
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
1110
("polls", "0006_auto_20210612_1547"),

myhpi/polls/migrations/0008_polllist.py

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66

77
class Migration(migrations.Migration):
8-
98
dependencies = [
109
("wagtailcore", "0060_fix_workflow_unique_constraint"),
1110
("polls", "0007_auto_20210612_1620"),

myhpi/polls/migrations/0009_alter_poll_description.py

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
class Migration(migrations.Migration):
9-
109
dependencies = [
1110
("polls", "0008_polllist"),
1211
]

myhpi/tenca_django/migrations/0001_initial.py

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66

77
class Migration(migrations.Migration):
8-
98
initial = True
109

1110
dependencies = []

myhpi/tenca_django/migrations/0002_alter_hashentry_options_delete_legacyadminurl.py

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
class Migration(migrations.Migration):
7-
87
dependencies = [
98
("tenca_django", "0001_initial"),
109
]

myhpi/tenca_django/models.py

-1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,5 @@ def hashes(self):
6666

6767

6868
class DjangoModelCachedDescriptionHashStorage(TwoLevelHashStorage):
69-
7069
l1_class = DjangoModelHashStorage
7170
l2_class = MailmanDescriptionHashStorage

myhpi/tenca_django/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def post(self, request, *args, **kwargs):
140140
_("Unblocked {member}"),
141141
),
142142
]
143-
for (name, func, success_string) in operations:
143+
for name, func, success_string in operations:
144144
if name in request.POST:
145145
try:
146146
func(form.cleaned_data["email"])

0 commit comments

Comments
 (0)