summaryrefslogtreecommitdiff
path: root/setup.cfg
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2019-08-15 03:47:39 -0700
committerTimothy Edmund Crosley <timothy.crosley@gmail.com>2019-08-15 22:51:08 -0700
commitafa21c7b62e0c4a464ec99103919bfa2c2ef1855 (patch)
tree89b4283e9cd3ee48c13f2f45c92e2147f0882f5b /setup.cfg
parentf7ce039ece48b7d8dfc3061c90fbc7a566d0b22a (diff)
downloadisort-afa21c7b62e0c4a464ec99103919bfa2c2ef1855.tar.gz
Introduce Black to automate code formatting
Use Black, the uncompromising Python code formatter, to format the project and simplify contributions. Contributors no longer need to think or care about the project's preferred style, just let the tools handle it instead. Black is becoming more and more popular across Python projects and has recently became a project under the Python Software Foundation. This is especially important with the adoption of mypy as type annotations create another obstacle or consideration in code formatting, but Black handles this just fine. Many projects use both Black and isort. Using Black internally also helps ensure continued compatibility between the two popular projects. For more details on Black, see: https://github.com/psf/black > Black is the uncompromising Python code formatter. By using it, you > agree to cede control over minutiae of hand-formatting. In return, > Black gives you speed, determinism, and freedom from pycodestyle > nagging about formatting. You will save time and mental energy for > more important matters.
Diffstat (limited to 'setup.cfg')
-rw-r--r--setup.cfg18
1 files changed, 10 insertions, 8 deletions
diff --git a/setup.cfg b/setup.cfg
index 49a95ee5..a3f3f344 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,14 +1,16 @@
[flake8]
max-line-length = 160
ignore =
- # The default ignore list:
- E121,E123,E126,E226,E24,E704,
- # Our additions:
- # E127: continuation line over-indented for visual indent
- # E128: continuation line under-indented for visual indent
- E127,E128,
- # W504 line break after binary operator
- W504
+ # E203 whitespace before ':'
+ E203
+ # W504 line break before binary operator
+ W503
+
+[isort]
+combine_as_imports = True
+include_trailing_comma = True
+line_length = 88
+multi_line_output = 3
[mypy]
python_version = 3.5