Skip to content

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

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

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

Conversation

@ringo380

Copy link
Copy Markdown
Owner

Summary

Auto-generated by the QueryGrade weekly lint routine (2026-08-10).

Files changed: 15 files changed, 58 insertions(+), 56 deletions(-)

Tooling applied: black + isort across analyzer/ and querygrade/

Files reformatted by black (12):

  • analyzer/management/commands/process_ml_feedback.py
  • analyzer/management/commands/train_ml_model.py
  • analyzer/migrations/0008_mlmodelartifact.py
  • analyzer/ml/core/hybrid_grader.py
  • analyzer/ml/core/training_gates.py
  • analyzer/ml/core/training_pipeline.py
  • analyzer/ml/tests/test_model_storage.py
  • analyzer/ml/tests/test_process_ml_feedback_command.py
  • analyzer/ml/tests/test_training_gates.py
  • analyzer/test_analytics.py
  • analyzer/test_seo.py
  • querygrade/settings.py

Files fixed by isort (4, some overlap with black):

  • analyzer/urls.py
  • analyzer/views/ml_alert_views.py
  • analyzer/migrations/0008_mlmodelartifact.py
  • analyzer/ml/tests/test_alert_notifier.py

Outstanding flake8 findings (manual fix required)

flake8 reported 1,172 findings across analyzer/ and querygrade/. These require manual intervention. A representative sample:

analyzer/admin/__init__.py:7:89: E501 line too long (94 > 88 characters)
analyzer/admin/__init__.py:16:1: F401 '.ml_admin' imported but unused
analyzer/admin/__init__.py:23:1: E402 module level import not at top of file
analyzer/analyzers/base.py:19:1: F401 'django.core.cache.caches' imported but unused
analyzer/analyzers/base.py:158:9: F841 local variable 'start_time' is assigned to but never used

Dominant issue categories:

  • E501 — lines exceeding 88 characters (majority of findings)
  • F401 — unused imports
  • E402 — module-level imports not at top of file
  • F841 — local variables assigned but never used

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