Skip to content

Commit 4cc2bfd

Browse files
committed
Enable flake8 on migrations
1 parent 9bb0fe0 commit 4cc2bfd

18 files changed

+27
-26
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ repos:
2323
rev: 3.7.9
2424
hooks:
2525
- id: flake8
26-
exclude: .*/migrations/.*|settings/.*
26+
# These are only excluded because they're a mess right now.
27+
exclude: settings/.*
2728

2829
- repo: https://github.com/timothycrosley/isort
2930
rev: 4.3.21

junction/conferences/migrations/0001_initial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class Migration(migrations.Migration):
9191
),
9292
),
9393
],
94-
options={"abstract": False,},
94+
options={"abstract": False},
9595
bases=(models.Model,),
9696
),
9797
migrations.CreateModel(
@@ -155,7 +155,7 @@ class Migration(migrations.Migration):
155155
),
156156
),
157157
],
158-
options={"abstract": False,},
158+
options={"abstract": False},
159159
bases=(models.Model,),
160160
),
161161
migrations.CreateModel(

junction/conferences/migrations/0003_auto_20150113_1120.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22
from __future__ import unicode_literals
33

4-
from django.db import migrations, models
4+
from django.db import migrations
55

66

77
class Migration(migrations.Migration):

junction/conferences/migrations/0006_auto_20150216_1929.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22
from __future__ import unicode_literals
33

4-
from django.db import migrations, models
4+
from django.db import migrations
55

66

77
class Migration(migrations.Migration):

junction/conferences/migrations/0010_auto_20150713_2331.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class Migration(migrations.Migration):
6262
),
6363
),
6464
],
65-
options={"abstract": False,},
65+
options={"abstract": False},
6666
bases=(models.Model,),
6767
),
6868
migrations.CreateModel(
@@ -119,7 +119,7 @@ class Migration(migrations.Migration):
119119
),
120120
),
121121
],
122-
options={"abstract": False,},
122+
options={"abstract": False},
123123
bases=(models.Model,),
124124
),
125125
migrations.AddField(

junction/conferences/migrations/0014_conferencesettings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class Migration(migrations.Migration):
106106
),
107107
),
108108
],
109-
options={"abstract": False,},
109+
options={"abstract": False},
110110
bases=(models.Model,),
111111
),
112112
migrations.RunPython(add_default_values, remove_default_values),

junction/devices/migrations/0001_initial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class Migration(migrations.Migration):
5656
),
5757
),
5858
],
59-
options={"abstract": False,},
59+
options={"abstract": False},
6060
bases=(models.Model,),
6161
),
6262
]

junction/feedback/migrations/0001_initial.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class Migration(migrations.Migration):
5656
),
5757
),
5858
],
59-
options={"abstract": False,},
59+
options={"abstract": False},
6060
bases=(models.Model,),
6161
),
6262
migrations.CreateModel(
@@ -97,7 +97,7 @@ class Migration(migrations.Migration):
9797
),
9898
),
9999
],
100-
options={"abstract": False,},
100+
options={"abstract": False},
101101
bases=(models.Model,),
102102
),
103103
migrations.CreateModel(
@@ -146,7 +146,7 @@ class Migration(migrations.Migration):
146146
),
147147
),
148148
],
149-
options={"abstract": False,},
149+
options={"abstract": False},
150150
bases=(models.Model,),
151151
),
152152
migrations.CreateModel(
@@ -182,7 +182,7 @@ class Migration(migrations.Migration):
182182
),
183183
),
184184
],
185-
options={"abstract": False,},
185+
options={"abstract": False},
186186
bases=(models.Model,),
187187
),
188188
migrations.CreateModel(
@@ -228,7 +228,7 @@ class Migration(migrations.Migration):
228228
),
229229
),
230230
],
231-
options={"abstract": False,},
231+
options={"abstract": False},
232232
bases=(models.Model,),
233233
),
234234
migrations.AddField(

junction/profiles/migrations/0001_initial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class Migration(migrations.Migration):
6565
),
6666
),
6767
],
68-
options={"abstract": False,},
68+
options={"abstract": False},
6969
bases=(models.Model,),
7070
),
7171
]

junction/proposals/migrations/0001_initial.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ class Migration(migrations.Migration):
266266
),
267267
),
268268
],
269-
options={"abstract": False,},
269+
options={"abstract": False},
270270
bases=(models.Model,),
271271
),
272272
migrations.CreateModel(
@@ -365,7 +365,7 @@ class Migration(migrations.Migration):
365365
),
366366
),
367367
],
368-
options={"abstract": False,},
368+
options={"abstract": False},
369369
bases=(models.Model,),
370370
),
371371
migrations.CreateModel(
@@ -422,7 +422,7 @@ class Migration(migrations.Migration):
422422
),
423423
),
424424
],
425-
options={"abstract": False,},
425+
options={"abstract": False},
426426
bases=(models.Model,),
427427
),
428428
migrations.CreateModel(

0 commit comments

Comments
 (0)