summaryrefslogtreecommitdiff
path: root/setup.cfg
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2021-02-01 20:47:27 -0500
committerTodd Leonhardt <todd.leonhardt@gmail.com>2021-02-01 20:47:27 -0500
commitf6911706416514adfc7d591587a868cd714c9a25 (patch)
treef56aafe4c2bf6943d40e891ed1d619218ee6e113 /setup.cfg
parent918200c02d392c17862fff81bbf58820ed15c725 (diff)
downloadcmd2-git-black_config.tar.gz
Added black to Pipfile and black configuration to pyrpoject.tomlblack_config
Also: - Updated flake8 and isort config in setup.cfg to be consistent with black - Simplified how flake8 is executed by invoke task - Simplified how flake8 is executed by GitHub Actions workflow
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..a01d2f86 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 = 1
+skip = cmd2/__init__.py,.git,__pycache,.tox,.nox,.venv,.eggs,.idea,.vscode,build,dist.htmlcov
+profile = black
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0