Skip to content

Commit

Permalink
Add pyproject.toml to avoid re-running black on ropetest
Browse files Browse the repository at this point in the history
black currently has poor multi-line string treatment for dedent()-ed code.

I've ran aneeshusa's black branch psf/black#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.
  • Loading branch information
lieryan committed Sep 26, 2021
1 parent ae87aa3 commit 937759c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyproject.toml
@@ -0,0 +1,4 @@
[tool.black]

target-version = ['py27', 'py33', 'py34', 'py35', 'py36', 'py37', 'py38', 'py39']
exclude = 'ropetest'

0 comments on commit 937759c

Please sign in to comment.