ruff rule C4

This commit is contained in:
thomas girod 2024-06-27 15:00:37 +02:00
parent 171a1cb876
commit f941435232
7 changed files with 9 additions and 9 deletions

View File

@ -100,6 +100,6 @@ class Migration(migrations.Migration):
),
),
migrations.AlterUniqueTogether(
name="operation", unique_together=set([("number", "journal")])
name="operation", unique_together={("number", "journal")}
),
]

View File

@ -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")}
),
]

View File

@ -109,6 +109,6 @@ class Migration(migrations.Migration):
),
migrations.AlterUniqueTogether(
name="mailingsubscription",
unique_together=set([("user", "email", "mailing")]),
unique_together={("user", "email", "mailing")},
),
]

View File

@ -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:

View File

@ -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",

View File

@ -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")}
),
]

View File

@ -45,6 +45,6 @@ class Migration(migrations.Migration):
],
),
migrations.AlterUniqueTogether(
name="peoplepicturerelation", unique_together=set([("user", "picture")])
name="peoplepicturerelation", unique_together={("user", "picture")}
),
]