Skip to content
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

Merged
merged 9 commits into from
Nov 6, 2024

Conversation

chirizxc
Copy link
Contributor

@chirizxc chirizxc commented Nov 5, 2024

No description provided.

@chirizxc chirizxc changed the title drop support python 3.8 drop support python 3.8, drop flake 8, add ruff Nov 6, 2024
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
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please,

  1. never use E501
  2. do not mix and+or without brackets, it is hard to read
  3. do not try to avoid nested conditions, sometimes it is easier to read

Copy link
Contributor Author

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",
Copy link
Owner

@Tishka17 Tishka17 Nov 6, 2024

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

@Tishka17 Tishka17 merged commit e3598bf into Tishka17:develop Nov 6, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants