Skip to content

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

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

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

Conversation

@ringo380

Copy link
Copy Markdown
Owner

Summary

Auto-generated by the QueryGrade weekly lint routine (2026-06-22).

Auto-fixed: isort reordered imports in 3 files. black found nothing to reformat.

Files changed: 3 files changed, 8 insertions(+), 4 deletions(-)

  • analyzer/urls.py
  • analyzer/views/ml_alert_views.py
  • analyzer/ml/tests/test_alert_notifier.py

Outstanding flake8 findings (manual fix required)

1,182 findings total — all require manual attention (black/isort cannot auto-fix these):

Code Count Description
E501 744 Line too long (> 88 chars)
F401 332 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 import * used (unable to detect undefined names)
F821 2 Undefined name
First 80 lines of flake8 output (click to expand)
analyzer/admin/__init__.py:7:89: E501 line too long (94 > 88 characters)
analyzer/admin/__init__.py:9:89: E501 line too long (92 > 88 characters)
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/admin/__init__.py:32:1: E402 module level import not at top of file
analyzer/admin/__init__.py:33:1: E402 module level import not at top of file
analyzer/admin/ml_admin.py:250:89: E501 line too long (141 > 88 characters)
analyzer/admin/ml_admin.py:251:89: E501 line too long (110 > 88 characters)
analyzer/admin/ml_admin.py:252:89: E501 line too long (138 > 88 characters)
analyzer/admin/ml_admin.py:327:89: E501 line too long (92 > 88 characters)
analyzer/admin/user_admin.py:39:89: E501 line too long (92 > 88 characters)
analyzer/analyzers/base.py:19:1: F401 'django.core.cache.caches' imported but unused
analyzer/analyzers/base.py:86:89: E501 line too long (89 > 88 characters)
analyzer/analyzers/base.py:158:9: F841 local variable 'start_time' is assigned to but never used
analyzer/analyzers/base.py:214:89: E501 line too long (91 > 88 characters)
analyzer/analyzers/base.py:215:89: E501 line too long (97 > 88 characters)
analyzer/analyzers/case_statement_analyzer.py:69:89: E501 line too long (118 > 88 characters)
analyzer/analyzers/case_statement_analyzer.py:76:89: E501 line too long (131 > 88 characters)
analyzer/analyzers/base.py:158:9: F841 local variable 'start_time' is assigned to but never used
analyzer/analyzers/groupby_analyzer.py:69:89: E501 line too long (97 > 88 characters)
analyzer/analyzers/database/mysql_analyzer.py:70:89: E501 line too long (118 > 88 characters)
analyzer/analyzers/database/postgresql_analyzer.py:52:89: E501 line too long (89 > 88 characters)

(Full output: 1,182 lines — see /tmp/flake8.txt in the lint run environment)


Do NOT merge without review. This PR contains only auto-generated import ordering fixes.


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