Files
theclaymethod__unslop/ruff.toml

59 lines
3.2 KiB
TOML

# Minimal lint baseline so the existing "# noqa: E402 / BLE001" markers in
# scripts/ and evals/ annotate a gate that actually exists (Plan 010).
#
# select = E (pycodestyle errors), F (pyflakes), BLE (blind-except). E402 and
# BLE001 are the two codes the current noqa markers assume; keeping them
# selected (not just present-but-ignored) is the point of this file.
#
# ignore: pure style, not defects. This codebase's small check_*.py helpers
# deliberately use compact one-line style (semicolon-joined statements,
# single-line if/lambda bodies), so E401/E501/E701/E702/E731 fire on
# stylistic choices rather than bugs.
[lint]
select = ["E", "F", "BLE"]
ignore = ["E401", "E501", "E701", "E702", "E731"]
# Everything below is a real (pre-existing) finding, scoped to the one file
# it's in rather than fixed here — this baseline's job is to make `ruff
# check .` pass today without touching source outside the three argparse
# entry blocks this plan changed. Each is left for a maintainer to address on
# purpose:
# evals/check_contrib.py F821 `subprocess` used only in a
# `from __future__ import
# annotations` return type;
# never imported.
# F401 unused `Path` import.
# evals/check_pattern_coverage.py F401 unused `Path` import.
# evals/check_seeded_docs.py BLE001 two bare `except Exception`.
# evals/run_model_parity.py F401 unused `os` import.
# scripts/banned_phrase_scan.py F401 two unused `_lang` imports.
# F601 `"needless to say"` key literal
# repeated in BANNED_PHRASES (same
# value both times; harmless but
# dead).
# scripts/calibrate_score.py F401 unused `POLES` import.
# scripts/harvest_classify.py F401 unused `DATE_FLOOR` import.
# scripts/structure_scan.py F401 two unused `_lang` imports.
# scripts/suggest.py F401 unused `re` import.
# scripts/voice_profile.py F401 unused `math` import.
# scripts/wiki_sync.py F541 three f-strings with no
# placeholders.
# plans/scratch/015-silhouette-stability.py
# F541 one f-string with no placeholders
# (spike scratch script merged from
# Plan 015 after this baseline was
# written; integration-time ignore).
[lint.per-file-ignores]
"evals/check_contrib.py" = ["F821", "F401"]
"evals/check_pattern_coverage.py" = ["F401"]
"evals/check_seeded_docs.py" = ["BLE001"]
"evals/run_model_parity.py" = ["F401"]
"scripts/banned_phrase_scan.py" = ["F401", "F601"]
"scripts/calibrate_score.py" = ["F401"]
"scripts/harvest_classify.py" = ["F401"]
"scripts/structure_scan.py" = ["F401"]
"scripts/suggest.py" = ["F401"]
"scripts/voice_profile.py" = ["F401"]
"scripts/wiki_sync.py" = ["F541"]
"plans/scratch/015-silhouette-stability.py" = ["F541"]