Features: None;

Fixes: 1) Correct indentation in multiple modules, including mutations, models, and utility methods to maintain consistency; 2) Fix typos in function parameters and update alignment for readability;

Extra: Refactored for improved code readability and adherence to PEP 8 style guidelines.
This commit is contained in:
Egor Pavlovich Gorbunov 2025-06-17 11:34:02 +03:00
parent 484bd95d94
commit 0153157653
9 changed files with 101 additions and 103 deletions

View file

@ -37,7 +37,7 @@ class AbstractVendor:
if total == 0: if total == 0:
return [] return []
chunk_size = max(1, (total + num_chunks - 1) // num_chunks) chunk_size = max(1, (total + num_chunks - 1) // num_chunks)
return [data[i: i + chunk_size] for i in range(0, total, chunk_size)] return [data[i : i + chunk_size] for i in range(0, total, chunk_size)]
@staticmethod @staticmethod
def auto_convert_value(value): def auto_convert_value(value):

View file

@ -16,12 +16,10 @@ urlpatterns = [
path(r"graphql/", csrf_exempt(CustomGraphQLView.as_view(graphiql=True, schema=schema))), path(r"graphql/", csrf_exempt(CustomGraphQLView.as_view(graphiql=True, schema=schema))),
path( path(
r"docs/", r"docs/",
SpectacularAPIView.as_view(urlconf="evibes.api_urls", SpectacularAPIView.as_view(urlconf="evibes.api_urls", custom_settings=SPECTACULAR_PLATFORM_SETTINGS),
custom_settings=SPECTACULAR_PLATFORM_SETTINGS),
name="schema-platform", name="schema-platform",
), ),
path(r"docs/swagger/", CustomSwaggerView.as_view(url_name="schema-platform"), path(r"docs/swagger/", CustomSwaggerView.as_view(url_name="schema-platform"), name="swagger-ui-platform"),
name="swagger-ui-platform"),
path(r"docs/redoc/", CustomRedocView.as_view(url_name="schema-platform"), name="redoc-ui-platform"), path(r"docs/redoc/", CustomRedocView.as_view(url_name="schema-platform"), name="redoc-ui-platform"),
path(r"i18n/", include("django.conf.urls.i18n")), path(r"i18n/", include("django.conf.urls.i18n")),
path(r"favicon.ico", favicon_view), path(r"favicon.ico", favicon_view),
@ -30,7 +28,7 @@ urlpatterns = [
path(r"auth/", include("vibes_auth.urls")), path(r"auth/", include("vibes_auth.urls")),
path(r"payments/", include("payments.urls")), path(r"payments/", include("payments.urls")),
path(r"blog/", include("blog.urls")), path(r"blog/", include("blog.urls")),
] + i18n_patterns(path("admin/", admin.site.urls)) ] + i18n_patterns(path("admin/", admin.site.urls))
if settings.DEBUG: if settings.DEBUG:
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)