Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Update isort rules to stop the conflicts with black
NyanKiyoshia0bc32995a77
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yamlindex 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: isortdiff --git a/saleor/graphql/translations/mutations.py b/saleor/graphql/translations/mutations.pyindex 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_modelsfrom ...product import models as product_modelsfrom ...shipping import models as shipping_modelsfrom ..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-importfrom ..shop.types import Shopfrom .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.cfgindex d686f1d7f9..c19a002533 100644--- a/setup.cfg+++ b/setup.cfg@@ -56,7 +56,11 @@ skip =migrationsnode_modulesnot_skip = __init__.py-multi_line_output = 4++# Vertical Hanging Indent+multi_line_output = 3+include_trailing_comma: True+line_length = 88known_first_party = saleorknown_third_party =