Replaces #8403 by adding lint fixes based on the upgraded version
Lint fixes & pre-commit autoupdate. Replaces #8403 by adding lint fixes based on the upgraded version
from celery import Celery

hello = Celery(set_as_current=False)

from celery import Celery

hello = Celery(set_as_current=False)
