mirror of
https://github.com/pablorevilla-meshtastic/meshview.git
synced 2026-03-04 23:27:46 +01:00
Configure Ruff as the code formatter and linter with pre-commit hooks. Applied automatic formatting fixes across the entire codebase including: - Import sorting and organization - Code style consistency (spacing, line breaks, indentation) - String quote normalization - Removal of trailing whitespace and unnecessary blank lines
13 lines
339 B
TOML
13 lines
339 B
TOML
[tool.ruff]
|
|
# Linting
|
|
target-version = "py313"
|
|
line-length = 100
|
|
extend-exclude = ["build", "dist", ".venv"]
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "UP", "B"] # pick your rulesets
|
|
ignore = ["E501"] # example; let formatter handle line length
|
|
|
|
[tool.ruff.format]
|
|
quote-style = "preserve"
|
|
indent-style = "space" |