line-length = 100 target-version = "py310" [lint] select = ["E", "F", "W", "I", "B", "SIM", "UP", "PL", "ISC"] ignore = [ # safe_open() handles from safetensors expose .keys() as their API; they are # not dicts, so `key in handle` does not work. "SIM118", # subprocess.run without check=True is deliberate throughout: this repository # records failures as data rather than raising on them. "PLW1510", "PLR0912", # branch count — the scoring dispatch is a flat, readable table "PLR0915", # statement count — likewise for the evaluation drivers "PLR2004", # magic values are fine in measurement thresholds # Imports of torch/transformers are deliberately lazy so that --help and # --dry-run work in an environment without them installed. "PLC0415", # The scoring dispatch in run_custom_eval.py is a deliberately flat table of # `if kind == ...: return` branches — easier to audit than a handler registry, # and auditability is the point of that suite. "PLR0911", # A bare try/except/pass reads more plainly than contextlib.suppress in the # number-parsing helper. "SIM105", # inference_cli.py intentionally rewrites the streamed chunk to strip the # reasoning span mid-stream. "PLW2901", ] [lint.per-file-ignores] "tests/*" = ["PLR2004"] [format] quote-style = "double"