Skip to content

Commit 780e6b3

Browse files
committed
ruff: Add ruff configuration file
This configuration file has been copied from Zephyr, the configuration works well there and seems ideal for the basis for python code in MCUboot Signed-off-by: Jamie McCrae <[email protected]>
1 parent 521fc0b commit 780e6b3

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.ruff.toml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Copyright (c) 2024 Basalte bv
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
line-length = 100
5+
target-version = "py310"
6+
7+
[lint]
8+
select = [
9+
"B", # flake8-bugbear
10+
"E", # pycodestyle
11+
"F", # pyflakes
12+
"I", # isort
13+
"SIM", # flake8-simplify
14+
"UP", # pyupgrade
15+
"W", # pycodestyle warnings
16+
]
17+
18+
ignore = [
19+
"SIM108", # Allow if-else blocks instead of forcing ternary operator
20+
]
21+
22+
[format]
23+
quote-style = "preserve"
24+
line-ending = "lf"

0 commit comments

Comments
 (0)