zephyr/scripts/dts/python-devicetree
Luca Burelli 0a4e2e383f scripts: dts: dtlib: improve formatting of long arrays
Split long arrays into multiple lines to improve readability of the
output DTS file. A new line is started when the array data exceeds
80 characters.

Add a few test entries to verify the new behavior.

Note: the F821 linter suppression prevents flagging 'array_start' and
'array_newline' as undefined variables. This is because these variables
are initialized when an opening brace is output, which is necessarily
before any element in a byte or prop array. A sequence of markers not
following this pattern would indicate a bug in the DTS parsing code.

Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
2025-06-05 15:18:40 -05:00
..
src/devicetree scripts: dts: dtlib: improve formatting of long arrays 2025-06-05 15:18:40 -05:00
tests scripts: dts: dtlib: improve formatting of long arrays 2025-06-05 15:18:40 -05:00
.gitignore
requirements.txt
setup.py python: Format trivial files where only newlines were missing 2024-11-21 20:10:51 +01:00
tox.ini