Skip to content

fix(analyzer): reduce Django and Celery false positives - #800

Merged
duriantaco merged 1 commit into
mainfrom
fix/django-celery-entrypoints
Sep 6, 2026
Merged

fix(analyzer): reduce Django and Celery false positives#800
duriantaco merged 1 commit into
mainfrom
fix/django-celery-entrypoints

Conversation

@duriantaco

Copy link
Copy Markdown
Owner

Fix #776

Summary

  • Fixed unused param warnings on Django migration callbacks
  • Recognize signal imports in AppConfig.ready() and conventional empty admin.py files.
  • Recognize registered Celery routers and their callback parameters.
  • Resolve Django references and template event handlers.
  • Fixed false package self-cycles without hiding real circular imports.

Tests

pytest test/test_django_admin_stubs.py test/test_django_celery_entrypoints.py test/test_django_static_entrypoints.py
test/test_circular_deps.py test/test_dead_code_liveness.py test/test_ts_exports.py test/test_typescript_expanded.py
test/test_architecture.py test/test_fast_parity.py

Recognize Django migration callbacks, AppConfig signal imports, admin stubs, and registered Celery routers. Resolve template script entry files without marking unused exports live, and preserve same-package module identities in circular dependency checks.

Add positive and negative regression coverage for the reports in #776.
@duriantaco
duriantaco merged commit bc9ee49 into main Sep 6, 2026
13 checks passed
@duriantaco
duriantaco deleted the fix/django-celery-entrypoints branch September 6, 2026 03:35
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.

FP: Several from celery and Django

1 participant