Update Ruff and fix its errors
This commit is contained in:
parent
c54ceeb7a8
commit
1424978854
39 changed files with 183 additions and 175 deletions
|
|
@ -130,7 +130,7 @@ class Command(BaseCommand):
|
|||
|
||||
try:
|
||||
payload: dict = response.json()
|
||||
except Exception as exc: # noqa: BLE001
|
||||
except Exception as exc: # ruff:ignore[blind-except]
|
||||
self.stderr.write(self.style.ERROR(f"Failed to parse JSON response: {exc}"))
|
||||
return
|
||||
|
||||
|
|
@ -166,7 +166,7 @@ class Command(BaseCommand):
|
|||
self.style.SUCCESS(f"Imported {imported}/{len(campaigns)} campaign(s)."),
|
||||
)
|
||||
|
||||
def _import_campaign(self, data: KickDropCampaignSchema) -> None: # noqa: PLR0914, PLR0915
|
||||
def _import_campaign(self, data: KickDropCampaignSchema) -> None: # ruff:ignore[too-many-locals, too-many-statements]
|
||||
"""Import a single campaign and all its related objects."""
|
||||
# Organization
|
||||
org_data: KickOrganizationSchema = data.organization
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue