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

ENH: Update Ruff configuration checking for numpy2 deprecation issues #7694

Closed

Conversation

jamesobutler
Copy link
Contributor

See https://docs.astral.sh/ruff/rules/numpy2-deprecation/

To prep for users potentially using Numpy 2, this runs a numpy2 deprecation check to avoid any incompatibilities. It appears that Slicer's numpy usage is already compatible, but this additional check makes sure that continues.

@@ -26,6 +26,7 @@ select = [
# "SIM", # flake8-simplify
"UP", # pyupgrade
"YTT", # flake8-2020
"NPY201", # numpy2-deprecation
Copy link
Member

Choose a reason for hiding this comment

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

Since we are already specifying NPY above, I think this rule is already enabled by default.

See https://docs.astral.sh/ruff/rules/#numpy-specific-rules-npy

@jamesobutler jamesobutler deleted the numpy2-deprecation-check branch April 14, 2024 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants