Skip to content

Commit

Permalink
python add "pyproject.toml" for configuring black
Browse files Browse the repository at this point in the history
This allows to run `black .` and only reformat the files, that are
actually black formatted.
  • Loading branch information
thom311 committed Jul 25, 2023
1 parent a0e4b7f commit 298ee58
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[tool.black]
target-versions = ["py37", "py38", "py39", "py310"]
include = '''
(
\.py$
| \.py\.in$
)
'''

0 comments on commit 298ee58

Please sign in to comment.