configure isort
This commit is contained in:
parent
5568fa24d6
commit
22f1d15554
|
@ -27,3 +27,8 @@ repos:
|
|||
- id: check-toml
|
||||
- id: check-yaml
|
||||
- id: mixed-line-ending
|
||||
|
||||
- repo: https://github.com/pycqa/isort
|
||||
rev: 5.9.3
|
||||
hooks:
|
||||
- id: isort
|
||||
|
|
|
@ -67,14 +67,12 @@ build-backend = "setuptools.build_meta"
|
|||
target-version = ['py36', 'py37', 'py38']
|
||||
|
||||
[tool.isort]
|
||||
line_length = 88
|
||||
profile = "black"
|
||||
sections = "FUTURE,STDLIB,ZOPE,OPENSSL,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
|
||||
default_section = "THIRDPARTY"
|
||||
no_lines_before = "LOCALFOLDER"
|
||||
known_first_party = "twisted"
|
||||
known_zope = "zope"
|
||||
known_openssl = "OpenSSL"
|
||||
multi_line_output = 3
|
||||
include_trailing_comma = true
|
||||
combine_as_imports = true
|
||||
skip = "src/twisted/logger/__init__.py,src/twisted/internet/reactor.py"
|
||||
|
|
Loading…
Reference in New Issue