summaryrefslogtreecommitdiffstatshomepage
path: root/tools/codeformat.py
diff options
context:
space:
mode:
authorJos Verlinde <jos_verlinde@hotmail.com>2023-08-02 10:07:31 +0200
committerDamien George <damien@micropython.org>2023-08-10 11:54:36 +1000
commit232c29c2ed799a520bbdb5e4729a71ea7f0335ce (patch)
tree594b9edfddf3e98dd2be8f3d0fb77ae40ea3b193 /tools/codeformat.py
parent8dbb29da3fe733f5a1350c5f9d3d7c3bc71870d5 (diff)
downloadmicropython-232c29c2ed799a520bbdb5e4729a71ea7f0335ce.tar.gz
micropython-232c29c2ed799a520bbdb5e4729a71ea7f0335ce.zip
tools/codeformat.py: Use pyproject.toml for black config.
Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>
Diffstat (limited to 'tools/codeformat.py')
-rwxr-xr-xtools/codeformat.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/codeformat.py b/tools/codeformat.py
index 93a4b14123..761bde3a81 100755
--- a/tools/codeformat.py
+++ b/tools/codeformat.py
@@ -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: