Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Adjust PEB-8
fowczarek71481a44c08e
diff --git a/saleor/graphql/discount/types.py b/saleor/graphql/discount/types.pyindex 3c34fc477e..f6cd1dc0c3 100644--- a/saleor/graphql/discount/types.py+++ b/saleor/graphql/discount/types.py@@ -4,8 +4,8 @@ import grapheneimport graphene_django_optimizer as gql_optimizerfrom graphene import relay-from ..core.fields import PrefetchingConnectionFieldfrom ...discount import DiscountValueType, VoucherType, models+from ..core.fields import PrefetchingConnectionFieldfrom ..core.types.common import CountableDjangoObjectTypefrom ..product.types import Category, Collection, Productdiff --git a/saleor/graphql/product/types.py b/saleor/graphql/product/types.pyindex 16ddcd4861..395d185545 100644--- a/saleor/graphql/product/types.py+++ b/saleor/graphql/product/types.py@@ -11,13 +11,13 @@ from ...product import modelsfrom ...product.templatetags.product_images import get_thumbnailfrom ...product.utils import calculate_revenue_for_variantfrom ...product.utils.availability import get_availability-from ...product.utils.costs import (get_margin_for_variant,- get_product_costs_data)+from ...product.utils.costs import (+ get_margin_for_variant, get_product_costs_data)from ..core.decorators import permission_requiredfrom ..core.fields import PrefetchingConnectionField-from ..core.types import (CountableDjangoObjectType, Money, MoneyRange,- ReportingPeriod, TaxedMoney, TaxedMoneyRange,- TaxRateType)+from ..core.types import (+ CountableDjangoObjectType, Money, MoneyRange, ReportingPeriod, TaxedMoney,+ TaxedMoneyRange, TaxRateType)from ..utils import get_database_id, reporting_period_to_datefrom .descriptions import AttributeDescriptions, AttributeValueDescriptionsdiff --git a/saleor/graphql/shop/types.py b/saleor/graphql/shop/types.pyindex 887824585d..7259074cd1 100644--- a/saleor/graphql/shop/types.py+++ b/saleor/graphql/shop/types.py@@ -1,10 +1,11 @@+from textwrap import dedent+import grapheneimport graphene_django_optimizer as gql_optimizerfrom django.conf import settingsfrom django_countries import countriesfrom graphql_jwt.decorators import permission_requiredfrom phonenumbers import COUNTRY_CODE_TO_REGION_CODE-from textwrap import dedentfrom ...core.permissions import get_permissionsfrom ...core.utils import get_client_ip, get_country_by_ip