Skip to content

Commit

Permalink
🎨 fix isort and black related issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bart-maykin committed Mar 19, 2024
1 parent b927f43 commit b7daaa6
Show file tree
Hide file tree
Showing 14 changed files with 35 additions and 25 deletions.
23 changes: 23 additions & 0 deletions src/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -776,6 +776,7 @@ components:
type: string
format: uuid
readOnly: true
nullable: true
description: De identificatie die binnen deze API gebruikt wordt voor de
resource.
upnUri:
Expand Down Expand Up @@ -952,6 +953,7 @@ components:
description: Het label en de link naar de procedure.
productAanwezigToelichting:
type: string
default: ''
title: Aanwezig toelichting
description: Een optioneel veld om uit te leggen waarom het product niet
aanwezig is. Deze moet u alleen invullen als u het product niet levert
Expand Down Expand Up @@ -1266,6 +1268,9 @@ components:
te worden: `["9:00 - 18:00"]`'
PaginatedGeneriekProductList:
type: object
required:
- count
- results
properties:
count:
type: integer
Expand All @@ -1286,6 +1291,9 @@ components:
$ref: '#/components/schemas/GeneriekProduct'
PaginatedLocatieList:
type: object
required:
- count
- results
properties:
count:
type: integer
Expand All @@ -1306,6 +1314,9 @@ components:
$ref: '#/components/schemas/Locatie'
PaginatedLokaleOverheidList:
type: object
required:
- count
- results
properties:
count:
type: integer
Expand All @@ -1326,6 +1337,9 @@ components:
$ref: '#/components/schemas/LokaleOverheid'
PaginatedProductList:
type: object
required:
- count
- results
properties:
count:
type: integer
Expand All @@ -1346,6 +1360,9 @@ components:
$ref: '#/components/schemas/Product'
PaginatedProductVersieList:
type: object
required:
- count
- results
properties:
count:
type: integer
Expand All @@ -1366,6 +1383,9 @@ components:
$ref: '#/components/schemas/ProductVersie'
PaginatedProductenCatalogusList:
type: object
required:
- count
- results
properties:
count:
type: integer
Expand Down Expand Up @@ -1679,6 +1699,7 @@ components:
type: integer
maximum: 2147483647
minimum: 0
default: 1
description: Het versienummer van het product.
gemaaktOp:
type: string
Expand Down Expand Up @@ -1732,6 +1753,7 @@ components:
description: De organisatie die deze catalogus beheert.
isReferentieCatalogus:
type: boolean
default: false
description: Een boolean die aangeeft of de catalogus een referentie catalogus
betreft. Een referentie catalogus bevat geen echte productbeschrijvingen.
referentieCatalogus:
Expand All @@ -1747,6 +1769,7 @@ components:
type: integer
maximum: 2147483647
minimum: 0
default: 1
description: De versie van deze catalogus. Op dit moment heeft de waarde
geen betekenis.
producten:
Expand Down
2 changes: 1 addition & 1 deletion src/sdg/accounts/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from django.contrib import admin, messages
from django.contrib.auth import get_user_model
from django.contrib.auth.admin import UserAdmin as _UserAdmin
from django.utils.translation import gettext_lazy as _
from django.utils.html import format_html
from django.utils.translation import gettext_lazy as _

from allauth.account.models import EmailAddress
from django_otp.plugins.otp_totp.admin import TOTPDeviceAdmin
Expand Down
3 changes: 1 addition & 2 deletions src/sdg/core/tests/test_cms_enabled.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
from django.test import override_settings
from django.urls import reverse

from sdg.core.tests.utils import WebTest

from sdg.accounts.tests.factories import RoleFactory, SuperUserFactory
from sdg.core.tests.factories.catalogus import ProductenCatalogusFactory
from sdg.core.tests.factories.logius import OverheidsorganisatieFactory
from sdg.core.tests.utils import WebTest
from sdg.organisaties.tests.factories.overheid import LokaleOverheidFactory


Expand Down
3 changes: 1 addition & 2 deletions src/sdg/core/tests/test_config.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
from django.test import TestCase

from sdg.core.tests.utils import WebTest

from sdg.accounts.tests.factories import UserFactory
from sdg.conf.types.organization import (
OrganizationTypeConfiguration,
available_org_types,
)
from sdg.core.models import SiteConfiguration
from sdg.core.tests.utils import WebTest


class SiteConfigurationTests(WebTest):
Expand Down
3 changes: 1 addition & 2 deletions src/sdg/core/tests/test_views.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
from django.test import override_settings
from django.urls import reverse

from sdg.core.tests.utils import WebTest

from sdg.accounts.tests.factories import RoleFactory, UserFactory
from sdg.conf.utils import org_type_cfg
from sdg.core.tests.utils import WebTest

HOME_URL = "core:home"
CARD_SELECTOR = ".cards__card"
Expand Down
1 change: 0 additions & 1 deletion src/sdg/core/tests/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from django_webtest import WebTest as DjangoWebTest

from maykin_2fa.test import disable_admin_mfa as disable_mfa


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
from django.conf import settings
from django.core.mail import send_mail
from django.core.management import BaseCommand
from django.db.models import Q
from django.template.loader import render_to_string
from django.utils.html import strip_tags
from django.utils.timezone import now
from django.template.loader import render_to_string

from dateutil.relativedelta import relativedelta

Expand Down
3 changes: 1 addition & 2 deletions src/sdg/organisaties/tests/test_bevoegde_organisaties.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
from django.urls import reverse_lazy

from sdg.core.tests.utils import WebTest

from sdg.accounts.tests.factories import RoleFactory, UserFactory
from sdg.core.tests.factories.logius import OverheidsorganisatieFactory
from sdg.core.tests.utils import WebTest
from sdg.organisaties.tests.factories.overheid import LokaleOverheidFactory


Expand Down
3 changes: 1 addition & 2 deletions src/sdg/organisaties/tests/test_invitation.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
from django.urls import reverse
from django.utils.translation import gettext as _

from sdg.core.tests.utils import WebTest

from sdg.accounts.models import UserInvitation
from sdg.accounts.tests.factories import RoleFactory, UserFactory
from sdg.conf.utils import org_type_cfg
from sdg.core.tests.utils import WebTest
from sdg.organisaties.tests.factories.overheid import LokaleOverheidFactory

INVITATION_URL = "organisaties:roles:invitation_create"
Expand Down
6 changes: 1 addition & 5 deletions src/sdg/organisaties/tests/test_notificaties.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
from django.conf import settings
from django.contrib.auth import get_user_model
from django.core import mail
from django.urls import reverse
from django.utils.timezone import now

from sdg.core.tests.utils import WebTest

from sdg.accounts.models import UserInvitation
from sdg.accounts.tests.factories import RoleFactory, UserFactory
from sdg.core.tests.utils import WebTest
from sdg.organisaties.tests.factories.overheid import LokaleOverheidFactory
from sdg.producten.tests.factories.product import (
ProductVersieFactory,
Expand Down
2 changes: 1 addition & 1 deletion src/sdg/organisaties/tests/test_overheden.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
from django.urls import reverse
from django.utils.translation import gettext as _

from sdg.core.tests.utils import WebTest
from freezegun import freeze_time

from sdg.accounts.tests.factories import RoleFactory, UserFactory
from sdg.core.constants import GenericProductStatus
from sdg.core.tests.factories.catalogus import ProductenCatalogusFactory
from sdg.core.tests.factories.logius import OverheidsorganisatieFactory
from sdg.core.tests.utils import WebTest
from sdg.organisaties.tests.factories.overheid import (
BevoegdeOrganisatieFactory,
LocatieFactory,
Expand Down
3 changes: 1 addition & 2 deletions src/sdg/organisaties/tests/test_roles.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
from django.urls import reverse_lazy

from sdg.core.tests.utils import WebTest

from sdg.accounts.models import Role
from sdg.accounts.tests.factories import RoleFactory, UserFactory
from sdg.core.tests.utils import WebTest
from sdg.organisaties.tests.factories.overheid import LokaleOverheidFactory


Expand Down
3 changes: 1 addition & 2 deletions src/sdg/producten/tests/test_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
from django.urls import reverse
from django.utils.translation import gettext as _

from sdg.core.tests.utils import WebTest
from freezegun import freeze_time

from sdg.accounts.tests.factories import RoleFactory, UserFactory
from sdg.conf.utils import org_type_cfg
from sdg.core.constants import GenericProductStatus, TaalChoices
from sdg.core.constants.product import DoelgroepChoices
from sdg.core.tests.factories.logius import OverheidsorganisatieFactory
from sdg.core.tests.utils import hard_refresh_from_db
from sdg.core.tests.utils import WebTest, hard_refresh_from_db
from sdg.organisaties.tests.factories.overheid import BevoegdeOrganisatieFactory
from sdg.producten.models import Product
from sdg.producten.tests.constants import (
Expand Down
2 changes: 1 addition & 1 deletion src/sdg/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
from django.utils.translation import gettext_lazy as _

from decorator_include import decorator_include
from two_factor.urls import urlpatterns as tf_urls
from maykin_2fa import monkeypatch_admin
from maykin_2fa.urls import urlpatterns, webauthn_urlpatterns
from two_factor.urls import urlpatterns as tf_urls

from sdg import miscellaneous_urls
from sdg.accounts.views.password_reset import PasswordResetView, ResendInventation
Expand Down

0 comments on commit b7daaa6

Please sign in to comment.