Ruff is used to enforce our code-style for the python parts of the reposity, similar to clang-tidy for the cpp parts. This includes a pre-commit hook to format code before it is committed When "unfixable" - i.e. no autoformatting is available - the commit is rejected resolves #812 Change-Id: I6830c2fc29ae86337ec18f2b0e3565fac66c5523
17 lines
306 B
TOML
17 lines
306 B
TOML
[formatter.nix]
|
|
command = "nixfmt"
|
|
includes = ["*.nix"]
|
|
excludes = ["tests/**"]
|
|
|
|
[formatter.ruff-format]
|
|
command = "ruff"
|
|
options = ["format"]
|
|
includes = ["tests/functional2/**/*.py"]
|
|
priority = 0
|
|
|
|
[formatter.ruff]
|
|
command = "ruff"
|
|
options = ["check"]
|
|
includes = ["tests/functional2/**/*.py"]
|
|
priority = 1
|