Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
fix styles
Damian Wysocki8741937f2322
diff --git a/saleor/checkout/calculations.py b/saleor/checkout/calculations.pyindex 6b41dd793b..d661d5db97 100644--- a/saleor/checkout/calculations.py+++ b/saleor/checkout/calculations.py@@ -15,9 +15,7 @@ def checkout_shipping_price(It takes in account all plugins."""- return get_plugins_manager().calculate_checkout_shipping(- checkout, discounts or []- )+ return get_plugins_manager().calculate_checkout_shipping(checkout, discounts or [])def checkout_subtotal(@@ -27,9 +25,7 @@ def checkout_subtotal(It takes in account all plugins."""- return get_plugins_manager().calculate_checkout_subtotal(- checkout, discounts or []- )+ return get_plugins_manager().calculate_checkout_subtotal(checkout, discounts or [])def checkout_total(diff --git a/saleor/graphql/account/mutations/base.py b/saleor/graphql/account/mutations/base.pyindex a3c7cceb38..947acb683f 100644--- a/saleor/graphql/account/mutations/base.py+++ b/saleor/graphql/account/mutations/base.py@@ -264,9 +264,7 @@ class BaseAddressUpdate(ModelMutation):def perform_mutation(cls, root, info, **data):response = super().perform_mutation(root, info, **data)user = response.address.user_addresses.first()- address = info.context.plugins.change_user_address(- response.address, None, user- )+ address = info.context.plugins.change_user_address(response.address, None, user)response.user = userresponse.address = addressreturn responsediff --git a/saleor/graphql/product/types/products.py b/saleor/graphql/product/types/products.pyindex 93141f26b2..3427a0517a 100644--- a/saleor/graphql/product/types/products.py+++ b/saleor/graphql/product/types/products.py@@ -493,11 +493,7 @@ class Product(CountableDjangoObjectType):def resolve_pricing(root: models.Product, info):context = info.contextavailability = get_product_availability(- root,- context.discounts,- context.country,- context.currency,- context.plugins,+ root, context.discounts, context.country, context.currency, context.plugins,)return ProductPricingInfo(**asdict(availability))diff --git a/saleor/plugins/checks.py b/saleor/plugins/checks.pyindex aa21dbfc8f..48282349f7 100644--- a/saleor/plugins/checks.py+++ b/saleor/plugins/checks.py@@ -31,9 +31,7 @@ def check_manager(errors: List[Error]):import_string(settings.PLUGINS_MANAGER)except ImportError:errors.append(- Error(- "Plugins Manager path: %s doesn't exist" % settings.PLUGINS_MANAGER- )+ Error("Plugins Manager path: %s doesn't exist" % settings.PLUGINS_MANAGER))diff --git a/saleor/plugins/models.py b/saleor/plugins/models.pyindex fa58daba9c..58c308ee4e 100644--- a/saleor/plugins/models.py+++ b/saleor/plugins/models.py@@ -14,9 +14,7 @@ class PluginConfiguration(models.Model):)class Meta:- permissions = (- (PluginsPermissions.MANAGE_PLUGINS.codename, "Manage plugins"),- )+ permissions = ((PluginsPermissions.MANAGE_PLUGINS.codename, "Manage plugins"),)def __str__(self):return f"Configuration of {self.name}, active: {self.active}"