Skip to content

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

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

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

Conversation

@ringo380

@ringo380 ringo380 commented Aug 3, 2026

Copy link
Copy Markdown
Owner

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

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

Files reformatted by black: 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 reordered by isort: 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 1172 findings (mostly E501 line-too-long). A representative sample:

analyzer/admin/__init__.py:16:1: F401 '.ml_admin' imported but unused
analyzer/admin/__init__.py:16:1: F401 '.query_admin' imported but unused
analyzer/admin/__init__.py:16:1: F401 '.user_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

The bulk of findings are E501 (line too long) violations — these require manual attention or a # noqa annotation. The F401/F841/E402 items above are higher-priority and worth fixing.


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