Fix 685+ linting errors across the codebase#21
Merged
pformoso-deus-ai merged 4 commits intomainfrom Feb 23, 2026
Merged
Conversation
- 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
These files are now properly gitignored. https://claude.ai/code/session_01JAbMU7GmooaRYsKsyPRdrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
F841 (unused variables), F811 (redefined names), E712 (True/False
comparisons), E713 (not-in membership tests) via ruff --fix
manipulation requires imports after setup code
E721 (type comparison) manually
https://claude.ai/code/session_01JAbMU7GmooaRYsKsyPRdrc