mirror of
https://github.com/ae-utbm/sith.git
synced 2024-12-21 23:31:18 +00:00
ruff rule C4
This commit is contained in:
parent
171a1cb876
commit
f941435232
@ -100,6 +100,6 @@ class Migration(migrations.Migration):
|
||||
),
|
||||
),
|
||||
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(
|
||||
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(
|
||||
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):
|
||||
deps = settings.SITH_FRONT_DEP_VERSIONS
|
||||
|
||||
processes = dict(
|
||||
(url, create_process(url))
|
||||
processes = {
|
||||
url: create_process(url)
|
||||
for url in deps.keys()
|
||||
if parse_semver(deps[url]) is not None
|
||||
)
|
||||
}
|
||||
|
||||
for url, process in processes.items():
|
||||
try:
|
||||
|
@ -573,7 +573,7 @@ class Migration(migrations.Migration):
|
||||
managers=[("objects", core.models.RealGroupManager())],
|
||||
),
|
||||
migrations.AlterUniqueTogether(
|
||||
name="page", unique_together=set([("name", "parent")])
|
||||
name="page", unique_together={("name", "parent")}
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="user",
|
||||
|
@ -176,6 +176,6 @@ class Migration(migrations.Migration):
|
||||
),
|
||||
),
|
||||
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(
|
||||
name="peoplepicturerelation", unique_together=set([("user", "picture")])
|
||||
name="peoplepicturerelation", unique_together={("user", "picture")}
|
||||
),
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user