tools/codeformat.py: Use pyproject.toml for black config.

Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>
pull/12144/head
Jos Verlinde 2023-08-02 10:07:31 +02:00 zatwierdzone przez Damien George
rodzic 8dbb29da3f
commit 232c29c2ed
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -90,6 +90,7 @@ EXCLUSIONS = [
TOP = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
UNCRUSTIFY_CFG = os.path.join(TOP, "tools/uncrustify.cfg")
PYPROJECT_TOML = os.path.join(TOP, "pyproject.toml")
C_EXTS = (
".c",
@ -208,7 +209,7 @@ def main():
# Format Python files with black.
if format_py:
command = ["black", "--fast", "--line-length=99"]
command = ["black", "--fast", "--config={}".format(PYPROJECT_TOML)]
if args.v:
command.append("-v")
else: