# 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) ]