Skip to content

Enforce ruff/Pylint Refactor rules (PLR) #10459

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

Merged
merged 3 commits into from
Jun 28, 2025
Merged

Conversation

DimitriPapadopoulos
Copy link
Contributor

  • Closes #xxxx
  • Tests added
  • User visible changes (including notable bug fixes) are documented in whats-new.rst
  • New functions/methods are listed in api.rst

@github-actions github-actions bot added topic-documentation topic-arrays related to flexible array support labels Jun 28, 2025
f"To silence this warning remove 'original_shape' from encoding."
)
char_dim_name = f"{char_dim_name}{strlen}"
elif (
Copy link
Contributor

Choose a reason for hiding this comment

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

@DimitriPapadopoulos Great to see this applied to the code base. One question, will this also be detected during pre-commit now?

Copy link
Contributor Author

@DimitriPapadopoulos DimitriPapadopoulos Jun 28, 2025

Choose a reason for hiding this comment

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

Yes, pre-commit runs ruff, which reads its configuration from pyproject.toml as usual.

PLR0124 Name compared with itself
PLR5501 Use `elif` instead of `else` then `if`, to reduce indentation
@max-sixty max-sixty merged commit 827696b into pydata:main Jun 28, 2025
31 of 33 checks passed
@DimitriPapadopoulos DimitriPapadopoulos deleted the PLR branch June 28, 2025 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-arrays related to flexible array support topic-documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants