This looks handy - I used the following to try it: $ pip install -U ruff $ ruff --preview --select NPY201 --fix <paths here>
Happily nothing to address on the code baseI tried. Thanks, Peter On Thu, Jan 11, 2024 at 11:32 AM Mateusz Sokol <[email protected]> wrote: > > Hi all! > > Some time ago we added a new rule to Ruff linter, "NPY201", which updates the > codebase to a NumPy 2.0 compatible version. > > You can read about it in the migration guide: > https://numpy.org/devdocs/numpy_2_0_migration_guide.html#ruff-plugin > And on the Ruff docs website: > https://docs.astral.sh/ruff/rules/numpy2-deprecation/ > (it's still in a "preview" mode but available since 0.1.4 release). > > Best regards, > Mateusz > _______________________________________________ > NumPy-Discussion mailing list -- [email protected] > To unsubscribe send an email to [email protected] > https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ > Member address: [email protected] _______________________________________________ NumPy-Discussion mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: [email protected]
