summary refs log tree commit diff
diff options
context:
space:
mode:
authorAmber Brown <hawkowl@atleastfornow.net>2018-07-09 16:05:21 +1000
committerGitHub <noreply@github.com>2018-07-09 16:05:21 +1000
commit2ee9f1bd1a3b644afd27fef8aea76cca93a1c9e5 (patch)
treef8ed3b7ba3b2c722b4a5b94743e7d23aa95fa07f
parentchangelog (diff)
downloadsynapse-2ee9f1bd1a3b644afd27fef8aea76cca93a1c9e5.tar.xz
Add an isort configuration (#3463)
-rw-r--r--changelog.d/3463.misc0
-rw-r--r--setup.cfg12
2 files changed, 12 insertions, 0 deletions
diff --git a/changelog.d/3463.misc b/changelog.d/3463.misc
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/changelog.d/3463.misc
diff --git a/setup.cfg b/setup.cfg
index fa6f2d1ce4..9b5b75cd60 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -19,3 +19,15 @@ max-line-length = 90
 #  W503 requires that binary operators be at the end, not start, of lines. Erik doesn't like it.
 #  E203 is contrary to PEP8.
 ignore = W503,E203
+
+[isort]
+line_length = 89
+not_skip = __init__.py
+sections=FUTURE,STDLIB,COMPAT,THIRDPARTY,TWISTED,FIRSTPARTY,TESTS,LOCALFOLDER
+default_section=THIRDPARTY
+known_first_party = synapse
+known_tests=tests
+known_compat = mock,six
+known_twisted=twisted,OpenSSL
+multi_line_output=3
+include_trailing_comma=true