Skip to content

Saleor Core: the high performance, composable, headless commerce API.

PEP8, style

Pacu271e58baffeb4
diff --git a/saleor/checkout/core.py b/saleor/checkout/core.py
index b595225d73..011401bb75 100644
--- a/saleor/checkout/core.py
+++ b/saleor/checkout/core.py
@@ -13,8 +13,7 @@ from ..account.utils import store_user_address
from ..cart.models import Cart
from ..cart.utils import get_or_empty_db_cart
from ..core import analytics
-from ..core.utils.taxes import (
- ZERO_TAXED_MONEY, get_taxes_for_country)
+from ..core.utils.taxes import ZERO_TAXED_MONEY, get_taxes_for_country
from ..discount.models import NotApplicable, Voucher
from ..discount.utils import increase_voucher_usage
from ..order.models import Order
diff --git a/saleor/dashboard/order/utils.py b/saleor/dashboard/order/utils.py
index e017f730f2..ab7c8c5d6a 100644
--- a/saleor/dashboard/order/utils.py
+++ b/saleor/dashboard/order/utils.py
@@ -19,8 +19,7 @@ def get_statics_absolute_url(request):
absolute_url = '%(protocol)s://%(domain)s%(static_url)s' % {
'protocol': 'https' if request.is_secure() else 'http',
'domain': site.domain,
- 'static_url': settings.STATIC_URL,
- }
+ 'static_url': settings.STATIC_URL}
return absolute_url
diff --git a/saleor/static/js/components/variantPicker/VariantPrice.js b/saleor/static/js/components/variantPicker/VariantPrice.js
index 25fbcb0069..6ad794ea7d 100644
--- a/saleor/static/js/components/variantPicker/VariantPrice.js
+++ b/saleor/static/js/components/variantPicker/VariantPrice.js
@@ -22,8 +22,7 @@ export default observer(class VariantPrice extends Component {
if (variant.priceLocalCurrency) {
priceLocalCurrency = variant.priceLocalCurrency.grossLocalized;
}
- }
- else {
+ } else {
priceText = `${variant.price.netLocalized}`;
priceUndiscountedText = `${variant.priceUndiscounted.netLocalized}`;
if (variant.priceLocalCurrency) {
@@ -40,8 +39,7 @@ export default observer(class VariantPrice extends Component {
if (availability.priceRangeLocalCurrency) {
priceLocalCurrency = availability.priceRangeLocalCurrency.minPrice.grossLocalized;
}
- }
- else {
+ } else {
priceText = `${priceRange.minPrice.netLocalized}`;
priceUndiscountedText = `${priceRangeUndiscounted.minPrice.netLocalized}`;
if (availability.priceRangeLocalCurrency) {