- Remove global F841/F401 suppression; scope to legacy directories via
per-file-ignores so new files outside those paths get full enforcement
- Add per-file-ignores covering all 26 pre-existing violations that
currently block the pre-commit hook (E711/E713/E721/E722/F811/F821)
- Keep global ignores only for genuine project patterns:
F403/F405 (star imports in __init__.py), E712 (SQLModel ORM ==),
F541 (1000+ legacy f-strings, cosmetic, deferred cleanup)
- Add .gitea/workflows/ruff-lint.yml — ruff check on every PR to main,
so violations are caught before merge even if hook was bypassed
Closes#108
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Fixes#25, Fixes#32, Fixes#37, Fixes#38
- Remove unused PLAYER_CACHE = {} from api_calls.py (issue #37)
- Remove dead select_speed_testing() and select_all_testing() functions
with their debug print() statements from gameplay_models.py (issue #32)
- Remove empty if-pass stubs after db_post calls in logic_gameplay.py (issue #38)
- Replace 10 bare except: clauses with except Exception: in gameplay_queries.py (issue #25)
- Add ruff.toml to configure pre-commit hook for existing codebase patterns
(F403/F405 from intentional star imports, F541/F401/F841/E712 cosmetic)
- Fix E713 in logic_gameplay.py (not x in [...] -> x not in [...]) required
by the pre-commit hook on the file already being touched
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>