summaryrefslogtreecommitdiff
path: root/setup.cfg
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2021-01-31 22:29:57 -0500
committerTodd Leonhardt <todd.leonhardt@gmail.com>2021-01-31 22:29:57 -0500
commitf456b802754c3d1095b488d670bebba21018d823 (patch)
treebf7011f585a8a35ab4cc7ff98aaeebed4de87f84 /setup.cfg
parent918200c02d392c17862fff81bbf58820ed15c725 (diff)
downloadcmd2-git-f456b802754c3d1095b488d670bebba21018d823.tar.gz
Add black for automatic code format
Diffstat (limited to 'setup.cfg')
-rw-r--r--setup.cfg26
1 files changed, 22 insertions, 4 deletions
diff --git a/setup.cfg b/setup.cfg
index 39e6ab81..1f7268b6 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -3,13 +3,31 @@ testpaths =
tests
[flake8]
-exclude = .git,.idea,.pytest_cache,.tox,.nox,.venv,.vscode,build,cmd2.egg-info,dist,htmlcov,__pycache__,*.egg
-max-line-length = 127
+count = True
+ignore = E203,E231,W503 # E231 can be removed once black is fixed.
max-complexity = 26
+max-line-length = 127
+show-source = True
+statistics = True
+exclude =
+ .git
+ __pycache__
+ .tox
+ .nox
+ .eggs
+ *.eggs,
+ .venv,
+ .idea,
+ .pytest_cache,
+ .vscode,
+ build,
+ dist,
+ htmlcov
[isort]
-line_length=1
-skip=cmd2/__init__.py
+line_length = 127
+skip = cmd2/__init__.py
+profile = black
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0