Skip to content

chore(lint): weekly black/isort/flake8 sweep - #118

Draft
ringo380 wants to merge 1 commit into
mainfrom
chore/weekly-lint-20260720
Draft

chore(lint): weekly black/isort/flake8 sweep#118
ringo380 wants to merge 1 commit into
mainfrom
chore/weekly-lint-20260720

Conversation

@ringo380

Copy link
Copy Markdown
Owner

Summary

Auto-generated by the QueryGrade weekly lint routine (2026-07-20).

  • 15 files changed, 58 insertions(+), 56 deletions(−)
  • black reformatted 12 files
  • isort fixed imports in 4 files

Files touched

File Tool
analyzer/management/commands/process_ml_feedback.py black
analyzer/management/commands/train_ml_model.py black
analyzer/migrations/0008_mlmodelartifact.py black + isort
analyzer/ml/core/hybrid_grader.py black
analyzer/ml/core/training_gates.py black
analyzer/ml/core/training_pipeline.py black
analyzer/ml/tests/test_alert_notifier.py isort
analyzer/ml/tests/test_model_storage.py black
analyzer/ml/tests/test_process_ml_feedback_command.py black
analyzer/ml/tests/test_training_gates.py black
analyzer/test_analytics.py black
analyzer/test_seo.py black
analyzer/urls.py isort
analyzer/views/ml_alert_views.py isort
querygrade/settings.py black

Outstanding flake8 findings (manual fix required)

1,173 findings remain — none are auto-fixable by black/isort. Breakdown by error code:

Code Count Description
E501 737 Line too long (> 88 chars)
F401 330 Imported but unused
F841 51 Local variable assigned but never used
F541 19 f-string without placeholders
F405 14 May be undefined from star import
E402 8 Module level import not at top of file
F811 7 Redefinition of unused name
F403 5 Star import used
F821 2 Undefined name

These require manual attention. The most impactful quick wins would be addressing F401 (unused imports) and F841 (unused variables).


Generated by Claude Code

Auto-generated by the QueryGrade weekly lint routine.
Tooling: black + isort across analyzer/ and querygrade/.
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