Skip to content

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

Update isort rules to stop the conflicts with black

NyanKiyoshia0bc32995a77
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 00e0d8297b..dcf22962d5 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -11,3 +11,13 @@ repos:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: flake8
+
+- repo: https://github.com/asottile/seed-isort-config
+ rev: v1.9.0
+ hooks:
+ - id: seed-isort-config
+
+- repo: https://github.com/pre-commit/mirrors-isort
+ rev: v4.3.18
+ hooks:
+ - id: isort
diff --git a/saleor/graphql/translations/mutations.py b/saleor/graphql/translations/mutations.py
index 77821d45cf..1c0ba7545f 100644
--- a/saleor/graphql/translations/mutations.py
+++ b/saleor/graphql/translations/mutations.py
@@ -6,12 +6,12 @@ from ...page import models as page_models
from ...product import models as product_models
from ...shipping import models as shipping_models
from ..core.mutations import BaseMutation, ModelMutation, registry
-
-# discount types need to be imported to get Voucher in the graphene registry
-from ..discount import types # noqa # pylint: disable=unused-import
from ..shop.types import Shop
from .enums import LanguageCodeEnum
+# discount types need to be imported to get Voucher in the graphene registry
+from ..discount import types # noqa # pylint: disable=unused-import, isort:skip
+
class BaseTranslateMutation(ModelMutation):
class Meta:
diff --git a/setup.cfg b/setup.cfg
index d686f1d7f9..c19a002533 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -56,7 +56,11 @@ skip =
migrations
node_modules
not_skip = __init__.py
-multi_line_output = 4
+
+# Vertical Hanging Indent
+multi_line_output = 3
+include_trailing_comma: True
+
line_length = 88
known_first_party = saleor
known_third_party =