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 <mso...@quansight.com> 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 -- numpy-discussion@python.org > To unsubscribe send an email to numpy-discussion-le...@python.org > https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ > Member address: p.j.a.c...@googlemail.com _______________________________________________ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: arch...@mail-archive.com