Skip to content

Commit afa7b8c

Browse files
kartbenjhedberg
authored andcommitted
doc: _scripts: fix SIM905 linter rule in gen_devicetree_rest.py
replace str.split() with an actual set of strings Signed-off-by: Benjamin Cabé <[email protected]>
1 parent c5e1b72 commit afa7b8c

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

.ruff-excludes.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@
4444
"./boards/microchip/mec172xevb_assy6906/support/mec172x_remote_flasher.py" = [
4545
"I001", # https://docs.astral.sh/ruff/rules/unsorted-imports
4646
]
47-
"./doc/_scripts/gen_devicetree_rest.py" = [
48-
"SIM905", # https://docs.astral.sh/ruff/rules/split-static-string
49-
]
5047
"./doc/_scripts/redirects.py" = [
5148
"E501", # https://docs.astral.sh/ruff/rules/line-too-long
5249
]

doc/_scripts/gen_devicetree_rest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
ZEPHYR_BASE = Path(__file__).parents[2]
3030

3131
# Base properties that have documentation in 'dt-important-props'.
32-
DETAILS_IN_IMPORTANT_PROPS = set('compatible label reg status interrupts'.split())
32+
DETAILS_IN_IMPORTANT_PROPS = {'compatible', 'label', 'reg', 'status', 'interrupts'}
3333

3434
logger = logging.getLogger('gen_devicetree_rest')
3535

0 commit comments

Comments
 (0)