From 719f0719f754272324acc834ffe406172750ee4c Mon Sep 17 00:00:00 2001 From: Lie Ryan Date: Sun, 26 Sep 2021 11:11:16 +1000 Subject: [PATCH] Add pyproject.toml to avoid re-running black on ropetest black currently has poor multi-line string treatment for dedent()-ed code. I've ran aneeshusa's 'black' branch https://github.com/psf/black/pull/1879 on ropetest instead, which leaves dedent()-ed lines alone while doing all its other cleanups. However most people likely will be running mainline black which would have mucked the formatting in these files, so I've also added an exclusion rule in pyproject.toml to prevent people from accidentally auto-formatting ropetest again. Until aneeshusa's branch are merged into mainline black, or black has a proper solution for dedent()-ed code, be careful of running black on ropetest. --- pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 000000000..b6407a20b --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,4 @@ +[tool.black] + +target-version = ['py27', 'py33', 'py34', 'py35', 'py36', 'py37', 'py38', 'py39'] +exclude = 'ropetest'