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

Apply Pylint rules #2869

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

DimitriPapadopoulos
Copy link
Contributor

@DimitriPapadopoulos DimitriPapadopoulos commented Feb 26, 2025

TODO:

  • Add unit tests and/or doctests in docstrings
  • Add docstrings and API docs for any new/modified user-facing classes and functions
  • New/modified features documented in docs/user-guide/*.rst
  • Changes documented as a new file in changes/
  • GitHub Actions have all passed
  • Test coverage is 100% (Codecov passes)

Removing [] inside calls that can use containers or generators should
be considered for performance reasons since a generator will have an
upfront cost to pay. The performance will be better if you are working
with long lists or sets.
Emitted when we detect the creation of a dictionary using the dict()
callable and a transient list. Although there is nothing syntactically
wrong with this code, it is hard to read and can be simplified to a dict
comprehension. Also it is faster since you don't need to create another
transient list.
@github-actions github-actions bot added the needs release notes Automatically applied to PRs which haven't added release notes label Feb 26, 2025
@DimitriPapadopoulos DimitriPapadopoulos marked this pull request as draft February 26, 2025 19:45
PLR5501 Use `elif` instead of `else` then `if`, to reduce indentation
PLR6104 Use `|=` to perform an augmented assignment directly
RUF036 `None` not at the end of the type annotation.
@DimitriPapadopoulos DimitriPapadopoulos marked this pull request as ready for review February 26, 2025 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs release notes Automatically applied to PRs which haven't added release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant