Skip to content

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

isort makes a point about [not merging configs][1] which seems to happen in Saleor (#9420)

Johan Bergströmfc2765307ffc
diff --git a/.isort.cfg b/.isort.cfg
index 5e5f561ac0..475aa858b6 100644
--- a/.isort.cfg
+++ b/.isort.cfg
@@ -1,2 +1,16 @@
[settings]
+profile = black
+skip =
+ .direnv
+ .tox
+ .venv
+ migrations
+ node_modules
+
+# Vertical Hanging Indent
+multi_line_output = 3
+include_trailing_comma = True
+
+line_length = 88
+known_first_party = saleor
known_third_party = Adyen,PIL,authorizenet,babel,before_after,boto3,botocore,braintree,celery,cryptography,dateutil,dj_database_url,dj_email_url,django,django_cache_url,django_countries,django_filters,django_measurement,django_prices,django_prices_openexchangerates,django_prices_vatlayer,draftjs_sanitizer,faker,freezegun,google,google_measurement_protocol,graphene,graphql,graphql_relay,html2text,html_to_draftjs,i18naddress,jaeger_client,jwt,kombu,lxml,markdown,measurement,micawber,mptt,oauthlib,openpyxl,opentracing,petl,phonenumber_field,phonenumbers,pkg_resources,posuto,prices,promise,pybars,pytest,pythonjsonlogger,pytimeparse,pytz,razorpay,requests,sendgrid,sentry_sdk,storages,stripe,urllib3,uvicorn,versatileimagefield,weasyprint
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 19072369fe..8075cd3068 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -20,16 +20,10 @@ repos:
hooks:
- id: flake8
- - repo: https://github.com/asottile/seed-isort-config
- rev: v2.2.0
- hooks:
- - id: seed-isort-config
-
- - repo: https://github.com/pre-commit/mirrors-isort
- rev: v5.10.1
+ - repo: https://github.com/pycqa/isort
+ rev: 5.10.1
hooks:
- id: isort
- args: ["--profile", "black"]
- repo: https://github.com/pycqa/pydocstyle
rev: 6.1.1
diff --git a/setup.cfg b/setup.cfg
index a646430390..59feb41658 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -48,24 +48,6 @@ ignore = D100, D101, D102, D103, D104, D105, D106, D107, D203, D213, D407, D202
inherit = false
match-dir = saleor
-[isort]
-skip =
- .direnv
- .tox
- .venv
- migrations
- node_modules
-not_skip = __init__.py
-
-# Vertical Hanging Indent
-multi_line_output = 3
-include_trailing_comma: True
-
-line_length = 88
-known_first_party = saleor
-known_third_party =Adyen,PIL,authorizenet,babel,boto3,braintree,celery,dateutil,dj_database_url,dj_email_url,django,django_cache_url,django_countries,django_filters,django_measurement,django_prices,django_prices_openexchangerates,django_prices_vatlayer,draftjs_sanitizer,faker,freezegun,google,google_measurement_protocol,graphene,graphene_django,graphene_federation,graphql,graphql_relay,html2text,html_to_draftjs,i18naddress,jaeger_client,jwt,kombu,lxml,markdown,measurement,mptt,oauthlib,openpyxl,opentracing,petl,phonenumber_field,phonenumbers,pkg_resources,prices,promise,pybars,pytest,pythonjsonlogger,pytimeparse,pytz,razorpay,requests,sendgrid,sentry_sdk,storages,stripe,tqdm,urllib3,versatileimagefield,weasyprint
-
-
[mypy]
ignore_missing_imports = True
allow_untyped_globals = True