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

Prepare for release of numpy 2.0 by using ruff ruleset #3261

Merged
merged 3 commits into from
Jun 8, 2024

Conversation

jorgensd
Copy link
Member

@jorgensd jorgensd commented Jun 7, 2024

python/pyproject.toml Outdated Show resolved Hide resolved
@jorgensd jorgensd added the dependencies Pull requests that update a dependency file label Jun 7, 2024
@jorgensd jorgensd added this to the 0.9.0 milestone Jun 7, 2024
@@ -34,7 +34,7 @@ dependencies = [

[project.optional-dependencies]
docs = ["markdown", "pyyaml", "sphinx", "sphinx_rtd_theme"]
lint = ["ruff"]
lint = ["ruff>=0.2.0"]
Copy link
Member

Choose a reason for hiding this comment

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

Is this pin required for ruff to run?

Copy link
Member Author

Choose a reason for hiding this comment

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

According to the release notes I've linked above, yes:

Ruff plugin

Many of the changes covered in the 2.0 release notes and in this migration guide can be automatically adapted > in downstream code with a dedicated Ruff rule, namely rule NPY201.
You should install ruff>=0.2.0 and add the NPY201 rule to your pyproject.toml:

@jorgensd jorgensd added this pull request to the merge queue Jun 8, 2024
Merged via the queue into main with commit b7ab2d8 Jun 8, 2024
28 checks passed
@jorgensd jorgensd deleted the dokken/numpy-2.0-deprecation branch June 8, 2024 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants