Skip to content

Commit 232c29c

Browse files
Josverldpgeorge
authored andcommittedAug 10, 2023
tools/codeformat.py: Use pyproject.toml for black config.
Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>
1 parent 8dbb29d commit 232c29c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎tools/codeformat.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
TOP = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
9191

9292
UNCRUSTIFY_CFG = os.path.join(TOP, "tools/uncrustify.cfg")
93+
PYPROJECT_TOML = os.path.join(TOP, "pyproject.toml")
9394

9495
C_EXTS = (
9596
".c",
@@ -208,7 +209,7 @@ def batch(cmd, files, N=200):
208209

209210
# Format Python files with black.
210211
if format_py:
211-
command = ["black", "--fast", "--line-length=99"]
212+
command = ["black", "--fast", "--config={}".format(PYPROJECT_TOML)]
212213
if args.v:
213214
command.append("-v")
214215
else:

0 commit comments

Comments
 (0)
Please sign in to comment.