Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
msj committed Nov 30, 2022
1 parent 63a0aac commit f193fef
Show file tree
Hide file tree
Showing 11 changed files with 129 additions and 112 deletions.
14 changes: 7 additions & 7 deletions opencivicdata/core/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ class Migration(migrations.Migration):
validators=[
django.core.validators.RegexValidator(
flags=32,
message="ID must match ^ocd-jurisdiction/country:[a-z]{2}(/[^\\W\\d]+:[\\w.~-]+)*/\\w+$",
regex="^ocd-jurisdiction/country:[a-z]{2}(/[^\\W\\d]+:[\\w.~-]+)*/\\w+$",
message="ID must match ^ocd-jurisdiction/country:[a-z]{2}(/[^\\W\\d]+:[\\w.~-]+)*/\\w+$", # noqa
regex="^ocd-jurisdiction/country:[a-z]{2}(/[^\\W\\d]+:[\\w.~-]+)*/\\w+$", # noqa
)
],
),
Expand Down Expand Up @@ -154,7 +154,7 @@ class Migration(migrations.Migration):
validators=[
django.core.validators.RegexValidator(
flags=32,
message="ID must match ^ocd-membership/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$",
message="ID must match ^ocd-membership/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$", # noqa
regex="^ocd-membership/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$",
)
],
Expand Down Expand Up @@ -267,8 +267,8 @@ class Migration(migrations.Migration):
validators=[
django.core.validators.RegexValidator(
flags=32,
message="ID must match ^ocd-organization/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$",
regex="^ocd-organization/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$",
message="ID must match ^ocd-organization/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$", # noqa
regex="^ocd-organization/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$", # noqa
)
],
),
Expand Down Expand Up @@ -490,7 +490,7 @@ class Migration(migrations.Migration):
validators=[
django.core.validators.RegexValidator(
flags=32,
message="ID must match ^ocd-person/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$",
message="ID must match ^ocd-person/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$", # noqa
regex="^ocd-person/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$",
)
],
Expand Down Expand Up @@ -686,7 +686,7 @@ class Migration(migrations.Migration):
validators=[
django.core.validators.RegexValidator(
flags=32,
message="ID must match ^ocd-post/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$",
message="ID must match ^ocd-post/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$", # noqa
regex="^ocd-post/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$",
)
],
Expand Down
40 changes: 20 additions & 20 deletions opencivicdata/core/migrations/0003_field_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Migration(migrations.Migration):
model_name="division",
name="country",
field=models.CharField(
help_text="An ISO-3166-1 alpha-2 code identifying the county where this division is found.",
help_text="An ISO-3166-1 alpha-2 code identifying the county where this division is found.", # noqa
max_length=2,
),
),
Expand Down Expand Up @@ -197,7 +197,7 @@ class Migration(migrations.Migration):
field=django.contrib.postgres.fields.jsonb.JSONField(
blank=True,
default=dict,
help_text="A key-value store for storing arbitrary information not covered elsewhere.",
help_text="A key-value store for storing arbitrary information not covered elsewhere.", # noqa
),
),
migrations.AlterField(
Expand Down Expand Up @@ -245,7 +245,7 @@ class Migration(migrations.Migration):
name="end_date",
field=models.CharField(
blank=True,
help_text="The date on which the relationship ended in YYYY[-MM[-DD]] string format.",
help_text="The date on which the relationship ended in YYYY[-MM[-DD]] string format.", # noqa
max_length=10,
),
),
Expand All @@ -255,7 +255,7 @@ class Migration(migrations.Migration):
field=django.contrib.postgres.fields.jsonb.JSONField(
blank=True,
default=dict,
help_text="A key-value store for storing arbitrary information not covered elsewhere.",
help_text="A key-value store for storing arbitrary information not covered elsewhere.", # noqa
),
),
migrations.AlterField(
Expand All @@ -271,7 +271,7 @@ class Migration(migrations.Migration):
model_name="membership",
name="on_behalf_of",
field=models.ForeignKey(
help_text="The Organization on whose behalf the Person is a member of the Organization.",
help_text="The Organization on whose behalf the Person is a member of the Organization.", # noqa
null=True,
on_delete=django.db.models.deletion.CASCADE,
related_name="memberships_on_behalf_of",
Expand Down Expand Up @@ -334,7 +334,7 @@ class Migration(migrations.Migration):
name="start_date",
field=models.CharField(
blank=True,
help_text="The date on which the relationship began in YYYY[-MM[-DD]] string format.",
help_text="The date on which the relationship began in YYYY[-MM[-DD]] string format.", # noqa
max_length=10,
),
),
Expand Down Expand Up @@ -396,7 +396,7 @@ class Migration(migrations.Migration):
model_name="membershipcontactdetail",
name="value",
field=models.CharField(
help_text="The content of the Contact information like a phone number or email address.",
help_text="The content of the Contact information like a phone number or email address.", # noqa
max_length=300,
),
),
Expand Down Expand Up @@ -459,7 +459,7 @@ class Migration(migrations.Migration):
name="dissolution_date",
field=models.CharField(
blank=True,
help_text="The dissolution date of the Organization in YYYY[-MM[-DD]] string format.",
help_text="The dissolution date of the Organization in YYYY[-MM[-DD]] string format.", # noqa
max_length=10,
),
),
Expand All @@ -469,7 +469,7 @@ class Migration(migrations.Migration):
field=django.contrib.postgres.fields.jsonb.JSONField(
blank=True,
default=dict,
help_text="A key-value store for storing arbitrary information not covered elsewhere.",
help_text="A key-value store for storing arbitrary information not covered elsewhere.", # noqa
),
),
migrations.AlterField(
Expand Down Expand Up @@ -512,7 +512,7 @@ class Migration(migrations.Migration):
model_name="organization",
name="parent",
field=models.ForeignKey(
help_text="A link to another Organization that serves as this Organization's parent.",
help_text="A link to another Organization that serves as this Organization's parent.", # noqa
null=True,
on_delete=django.db.models.deletion.CASCADE,
related_name="children",
Expand Down Expand Up @@ -577,7 +577,7 @@ class Migration(migrations.Migration):
model_name="organizationcontactdetail",
name="value",
field=models.CharField(
help_text="The content of the Contact information like a phone number or email address.",
help_text="The content of the Contact information like a phone number or email address.", # noqa
max_length=300,
),
),
Expand All @@ -593,7 +593,7 @@ class Migration(migrations.Migration):
model_name="organizationidentifier",
name="organization",
field=models.ForeignKey(
help_text="Reference to the Organization identified by this alternative identifier.",
help_text="Reference to the Organization identified by this alternative identifier.", # noqa
on_delete=django.db.models.deletion.CASCADE,
related_name="identifiers",
to="core.Organization",
Expand Down Expand Up @@ -638,7 +638,7 @@ class Migration(migrations.Migration):
name="end_date",
field=models.CharField(
blank=True,
help_text="An optional end date for usage of the alternative name in YYYY[-MM[-DD]] string format.",
help_text="An optional end date for usage of the alternative name in YYYY[-MM[-DD]] string format.", # noqa
max_length=10,
),
),
Expand Down Expand Up @@ -673,7 +673,7 @@ class Migration(migrations.Migration):
name="start_date",
field=models.CharField(
blank=True,
help_text="An optional start date for usage of the alternative name in YYYY[-MM[-DD]] string format.",
help_text="An optional start date for usage of the alternative name in YYYY[-MM[-DD]] string format.", # noqa
max_length=10,
),
),
Expand Down Expand Up @@ -741,7 +741,7 @@ class Migration(migrations.Migration):
field=django.contrib.postgres.fields.jsonb.JSONField(
blank=True,
default=dict,
help_text="A key-value store for storing arbitrary information not covered elsewhere.",
help_text="A key-value store for storing arbitrary information not covered elsewhere.", # noqa
),
),
migrations.AlterField(
Expand Down Expand Up @@ -869,7 +869,7 @@ class Migration(migrations.Migration):
model_name="personcontactdetail",
name="value",
field=models.CharField(
help_text="The content of the Contact information like a phone number or email address.",
help_text="The content of the Contact information like a phone number or email address.", # noqa
max_length=300,
),
),
Expand Down Expand Up @@ -930,7 +930,7 @@ class Migration(migrations.Migration):
name="end_date",
field=models.CharField(
blank=True,
help_text="An optional end date for usage of the alternative name in YYYY[-MM[-DD]] string format.",
help_text="An optional end date for usage of the alternative name in YYYY[-MM[-DD]] string format.", # noqa
max_length=10,
),
),
Expand Down Expand Up @@ -965,7 +965,7 @@ class Migration(migrations.Migration):
name="start_date",
field=models.CharField(
blank=True,
help_text="An optional start date for usage of the alternative name in YYYY[-MM[-DD]] string format.",
help_text="An optional start date for usage of the alternative name in YYYY[-MM[-DD]] string format.", # noqa
max_length=10,
),
),
Expand Down Expand Up @@ -1030,7 +1030,7 @@ class Migration(migrations.Migration):
field=django.contrib.postgres.fields.jsonb.JSONField(
blank=True,
default=dict,
help_text="A key-value store for storing arbitrary information not covered elsewhere.",
help_text="A key-value store for storing arbitrary information not covered elsewhere.", # noqa
),
),
migrations.AlterField(
Expand Down Expand Up @@ -1134,7 +1134,7 @@ class Migration(migrations.Migration):
model_name="postcontactdetail",
name="value",
field=models.CharField(
help_text="The content of the Contact information like a phone number or email address.",
help_text="The content of the Contact information like a phone number or email address.", # noqa
max_length=300,
),
),
Expand Down
25 changes: 21 additions & 4 deletions opencivicdata/core/migrations/0005_auto_20191031_1507.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,30 @@
class Migration(migrations.Migration):

dependencies = [
('core', '0004_auto_20171005_2028'),
("core", "0004_auto_20171005_2028"),
]

operations = [
migrations.AlterField(
model_name='organization',
name='classification',
field=models.CharField(blank=True, choices=[('legislature', 'Legislature'), ('executive', 'Executive'), ('upper', 'Upper Chamber'), ('lower', 'Lower Chamber'), ('party', 'Party'), ('committee', 'Committee'), ('commission', 'Commission'), ('corporation', 'Corporation'), ('agency', 'Agency'), ('department', 'Department'), ('judiciary', 'Judiciary')], help_text='The type of Organization being defined.', max_length=100),
model_name="organization",
name="classification",
field=models.CharField(
blank=True,
choices=[
("legislature", "Legislature"),
("executive", "Executive"),
("upper", "Upper Chamber"),
("lower", "Lower Chamber"),
("party", "Party"),
("committee", "Committee"),
("commission", "Commission"),
("corporation", "Corporation"),
("agency", "Agency"),
("department", "Department"),
("judiciary", "Judiciary"),
],
help_text="The type of Organization being defined.",
max_length=100,
),
),
]
Loading

0 comments on commit f193fef

Please sign in to comment.