-
Notifications
You must be signed in to change notification settings - Fork 28
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
dev: Enable most F rules for Ruff #574
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,8 +37,8 @@ target-version = "py312" | |
|
||
[lint] | ||
# Currently only enabled for F541 and I: https://docs.astral.sh/ruff/rules/ | ||
select = ["F541", "I"] | ||
ignore = [] | ||
select = ["F", "I"] | ||
ignore = ["F841", "F401", "F405", "F403"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My preferred way of tackling this initiative; then we can have separate tickets for F841, etc. or multiple PR's There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These 4 doesn't have autofixes? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. They have some autofixes, but theres like 2k errors I'd have to fix across all of them. So I figured would probably be better to tackle them separately |
||
|
||
# Allow fix for all enabled rules (when `--fix`) is provided. | ||
# The preferred method (for now) w.r.t. fixable rules is to manually update the makefile | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even post import it didn't resolve this correctly; but docs here: https://django-dbbackup.readthedocs.io/en/stable/databases.html