1# Copyright (c) 2024 Basalte bv
2# SPDX-License-Identifier: Apache-2.0
3
4extend = ".ruff-excludes.toml"
5
6line-length = 100
7target-version = "py310"
8
9[lint]
10select = [
11    # zephyr-keep-sorted-start
12    "B",      # flake8-bugbear
13    "E",      # pycodestyle
14    "F",      # pyflakes
15    "I",      # isort
16    "SIM",    # flake8-simplify
17    "UP",     # pyupgrade
18    "W",      # pycodestyle warnings
19    # zephyr-keep-sorted-stop
20]
21
22ignore = [
23    # zephyr-keep-sorted-start
24    "SIM108", # Allow if-else blocks instead of forcing ternary operator
25    # zephyr-keep-sorted-stop
26]
27
28[format]
29quote-style = "preserve"
30line-ending = "lf"
31