mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-10 00:03:24 +00:00
ruff rule C4
This commit is contained in:
parent
171a1cb876
commit
f941435232
@ -100,6 +100,6 @@ class Migration(migrations.Migration):
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
migrations.AlterUniqueTogether(
|
migrations.AlterUniqueTogether(
|
||||||
name="operation", unique_together=set([("number", "journal")])
|
name="operation", unique_together={("number", "journal")}
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
@ -45,6 +45,6 @@ class Migration(migrations.Migration):
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
migrations.AlterUniqueTogether(
|
migrations.AlterUniqueTogether(
|
||||||
name="label", unique_together=set([("name", "club_account")])
|
name="label", unique_together={("name", "club_account")}
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
@ -109,6 +109,6 @@ class Migration(migrations.Migration):
|
|||||||
),
|
),
|
||||||
migrations.AlterUniqueTogether(
|
migrations.AlterUniqueTogether(
|
||||||
name="mailingsubscription",
|
name="mailingsubscription",
|
||||||
unique_together=set([("user", "email", "mailing")]),
|
unique_together={("user", "email", "mailing")},
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
@ -24,11 +24,11 @@ class Command(BaseCommand):
|
|||||||
def handle(self, *args, **options):
|
def handle(self, *args, **options):
|
||||||
deps = settings.SITH_FRONT_DEP_VERSIONS
|
deps = settings.SITH_FRONT_DEP_VERSIONS
|
||||||
|
|
||||||
processes = dict(
|
processes = {
|
||||||
(url, create_process(url))
|
url: create_process(url)
|
||||||
for url in deps.keys()
|
for url in deps.keys()
|
||||||
if parse_semver(deps[url]) is not None
|
if parse_semver(deps[url]) is not None
|
||||||
)
|
}
|
||||||
|
|
||||||
for url, process in processes.items():
|
for url, process in processes.items():
|
||||||
try:
|
try:
|
||||||
|
@ -573,7 +573,7 @@ class Migration(migrations.Migration):
|
|||||||
managers=[("objects", core.models.RealGroupManager())],
|
managers=[("objects", core.models.RealGroupManager())],
|
||||||
),
|
),
|
||||||
migrations.AlterUniqueTogether(
|
migrations.AlterUniqueTogether(
|
||||||
name="page", unique_together=set([("name", "parent")])
|
name="page", unique_together={("name", "parent")}
|
||||||
),
|
),
|
||||||
migrations.AddField(
|
migrations.AddField(
|
||||||
model_name="user",
|
model_name="user",
|
||||||
|
@ -176,6 +176,6 @@ class Migration(migrations.Migration):
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
migrations.AlterUniqueTogether(
|
migrations.AlterUniqueTogether(
|
||||||
name="token", unique_together=set([("name", "launderette", "type")])
|
name="token", unique_together={("name", "launderette", "type")}
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
@ -45,6 +45,6 @@ class Migration(migrations.Migration):
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
migrations.AlterUniqueTogether(
|
migrations.AlterUniqueTogether(
|
||||||
name="peoplepicturerelation", unique_together=set([("user", "picture")])
|
name="peoplepicturerelation", unique_together={("user", "picture")}
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user