Skip to content

Fix 685+ linting errors across the codebase#21

Merged
pformoso-deus-ai merged 4 commits intomainfrom
claude/fix-linterna-issues-jBKFk
Feb 23, 2026
Merged

Fix 685+ linting errors across the codebase#21
pformoso-deus-ai merged 4 commits intomainfrom
claude/fix-linterna-issues-jBKFk

Conversation

@pformoso-deus-ai
Copy link
Collaborator

  • Auto-fix F401 (unused imports), F541 (f-string without placeholders),
    F841 (unused variables), F811 (redefined names), E712 (True/False
    comparisons), E713 (not-in membership tests) via ruff --fix
  • Fix E722 (bare except) by specifying Exception type
  • Fix E741 (ambiguous variable names) by renaming l/O/I to clear names
  • Fix E402 (import ordering) with noqa comments where sys.path
    manipulation requires imports after setup code
  • Fix F821 (undefined names), F601 (implicit string concat),
    E721 (type comparison) manually
  • Work in progress: ~78 errors remaining, mostly E402 in test files

https://claude.ai/code/session_01JAbMU7GmooaRYsKsyPRdrc

- Auto-fix F401 (unused imports), F541 (f-string without placeholders),
  F841 (unused variables), F811 (redefined names), E712 (True/False
  comparisons), E713 (not-in membership tests) via ruff --fix
- Fix E722 (bare except) by specifying Exception type
- Fix E741 (ambiguous variable names) by renaming l/O/I to clear names
- Fix E402 (import ordering) with noqa comments where sys.path
  manipulation requires imports after setup code
- Fix F821 (undefined names), F601 (implicit string concat),
  E721 (type comparison) manually
- Work in progress: ~78 errors remaining, mostly E402 in test files

https://claude.ai/code/session_01JAbMU7GmooaRYsKsyPRdrc
- Fix E402 (import ordering) with noqa comments in test/config files
  that require sys.path manipulation before imports
- Fix E741 (ambiguous variable names) in knowledge manager and services
- Fix remaining F401/F811/F821/F601/E721 issues
- Migrate per-file-ignores to lint.per-file-ignores in pyproject.toml
  to resolve ruff deprecation warning

All 763 original lint errors are now resolved. `ruff check .` passes cleanly.

https://claude.ai/code/session_01JAbMU7GmooaRYsKsyPRdrc
Virtual environment files should not be tracked in version control.

https://claude.ai/code/session_01JAbMU7GmooaRYsKsyPRdrc
@pformoso-deus-ai pformoso-deus-ai merged commit 60b7366 into main Feb 23, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants