From af19660c18241b256d776da0bf4528da9c0847f3 Mon Sep 17 00:00:00 2001 From: Andrew Senetar Date: Sun, 15 Aug 2021 03:32:31 -0500 Subject: [PATCH] Update flake8 and black configuration - Update black to now use 120 lines - Update flake8 to use recommended settings for black integration --- pyproject.toml | 5 +++++ tox.ini | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..a53246c5 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,5 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" +[tool.black] +line-length = 120 diff --git a/tox.ini b/tox.ini index 1323d36d..84245697 100644 --- a/tox.ini +++ b/tox.ini @@ -17,5 +17,5 @@ deps = [flake8] exclude = .tox,env,build,cocoalib,cocoa,help,./qt/dg_rc.py,cocoa/run_template.py,./pkg max-line-length = 120 -ignore = E731,E203,E501,W503 - +select = C,E,F,W,B,B950 +extend-ignore = E203, E501