From 937759c9e6f5dbbb83947c8b623e9dc8a0f978f1 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; however most people likely will be running mainline black which would have mucked these formatting , so we're adding an exclusion rule in pyproject.toml prevent people from auto-formatting 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'