-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
I have a Django app config that relies on importing some files on initialisation to get various functions in there registered. Having RUF100 enabled and running ruff with --fix, the following happens. The original looks like this:
import api.checks # noqa: F401
import api.signals # noqa: F401
import app.celery # noqa: F401
import tools.something # noqa: F401Running ruff will 'fix' it to the following, which seems incorrect (api.checks isn't used in this file) but will work and stay like that across multiple ruff runs:
import api.checks
import api.signals # noqa: F401
import app.celery # noqa: F401
import tools.something # noqa: F401However if I modify it further to:
import api.checks
import api.signals
import app.celery # noqa: F401
import tools.something # noqa: F401Both lines will get deleted the next time I run ruff and I end up with:
import app.celery # noqa: F401
import tools.something # noqa: F401Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working