We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello
Ruff format doesn't sort imports, nothing changed
I use Vscode Extenstion Ruff v2024.54.0
ruff.toml
[lint] extend-select = ["I","N","F","E","W","R","C90","UP","SIM","E402"] extend-ignore = ["E501"] ignore = ["E501","F403","F405"]
This does not work Module-level import not at top of file Module-import-not-at-top-of-file (E402)
I try several times, nothing works
I hope you can fix it
The text was updated successfully, but these errors were encountered:
Not all errors are auto-fixable. Can you be more specific about what you're trying to do?
Sorry, something went wrong.
For example
from flask_wtf import FlaskForm from wtforms import ( SubmitField, ) class SetPriceForm(FlaskForm): submit = SubmitField("Set Prices") import pyotp class SeForm(FlaskForm): submit = SubmitField("Set ") def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) if not self.is_submitted(): self.auth_key.data = pyotp.random_base32()
The import pyotp is not fixed It should be fixed and go up with othor import
Like this
import pyotp from flask_wtf import FlaskForm from wtforms import ( SubmitField, )
The reason this isn't working as expected is because ruff doesn't support the float-to-top isort options. We track that feature in #1251
ruff
float-to-top
No branches or pull requests
Hello
Ruff format doesn't sort imports, nothing changed
I use Vscode Extenstion Ruff v2024.54.0
ruff.toml
This does not work
Module-level import not at top of file
Module-import-not-at-top-of-file (E402)
I try several times, nothing works
I hope you can fix it
The text was updated successfully, but these errors were encountered: