configure isort

This commit is contained in:
Thomas Grainger 2021-08-04 22:27:22 +01:00
parent 5568fa24d6
commit 22f1d15554
No known key found for this signature in database
GPG Key ID: E452A1247BAC1A88
2 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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"