-
Notifications
You must be signed in to change notification settings - Fork 106
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
drop support python 3.8, drop flake 8, add ruff #436
Conversation
if not checked and len(data) > self.min_selected: | ||
data.remove(item_id_str) | ||
changed = True | ||
elif checked and self.max_selected == 0 or self.max_selected > len(data): # noqa: E501 |
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.
please,
- never use E501
- do not mix and+or without brackets, it is hard to read
- do not try to avoid nested conditions, sometimes it is easier to read
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.
done
"TD", | ||
"EM101", | ||
"EM102", | ||
"PT001", |
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.
let's enable
PT001, PT023, PLW2901, B904, RUF012, N804, B008, RUF009
and sort by name
No description provided.