-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
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
False-positive ERA001 with # nuitka-project:
configuration
#4618
Comments
Alternatively, being able to disable ERA001 for this block would also be an option. I know how to suppress it for a single line or the whole file, but not a block. |
You can use task-tags task-tags = ["nuitka-project"] |
This is great! It would be even greater if that was documented at https://beta.ruff.rs/docs/rules/commented-out-code/ and https://beta.ruff.rs/docs/rules/line-too-long/, then I would have found it without opening this issue :) |
Would you be open to making a pull-request for this? |
@JonathanPlasse sure, see #4644. |
Thank you! |
https://github.com/Nuitka/Nuitka allows in-file configurations:
I find lines starting with
# nuitka-project:
should not be flagged as ERA001 (and not be removed by--fix
).(If there was an option to disable ERA001 for certain keywords, users could configure that themselves.)
The text was updated successfully, but these errors were encountered: