about summary refs log tree commit diff stats
path: root/ruff.toml
blob: 868b5e605d8fab2f62719e8b1ac13ef066cd0786 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Ruff configuration for fungus-launcher
target-version = "py310"
line-length = 120

[lint]
# CI-lint target: catch runtime-breaking issues and common bugs.
# The legacy codebase has pre-existing style debt; we avoid complexity metrics
# (PLR09xx) and opinionated rules that require structural refactoring.
select = ["E", "W", "F", "RET", "F841", "UP", "PERF", "RUF", "PLW"]
ignore = [
    "F405",   # name may be undefined or from star-import (common with GTK patterns)
    "F541",   # f-string without placeholders (cosmetic, pre-existing in codebase)

    "E402",   # module import not at top of file (may be needed after GTK init)
    "E501",   # line too long (cosmetic — formatter handles this anyway)

    "UP031",  # percent-format vs f-string (cosmetic, pre-existing in codebase)

    "PLW0603",# global statement (used deliberately for module-level state flags)
    "PERF203",# try-except within loop (acceptable in cleanup/watchdog code)
]