[Numpy-discussion] New Ruff rule for migrating to NumPy 2.0
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: arch...@mail-archive.com
[Numpy-discussion] Re: next NumPy Newcomers' Hour - 10pm UTC
When is the next newcomers hour. On Thu, Jan 11, 2024, 10:21 AM Inessa Pawson wrote: > Yes, absolutely! Everyone is welcome to these meetings, especially > newcomers. > > > On Wed, Jan 10, 2024 at 1:26 PM wrote: > >> Can I join this meeting ?, I would like to learn and contribute >> ___ >> 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: albusc...@gmail.com >> > > > -- > Cheers, > Inessa > > Inessa Pawson > GitHub: inessapawson > ___ > 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: rakshitsingh...@gmail.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
[Numpy-discussion] Re: New Ruff rule for migrating to NumPy 2.0
This looks handy - I used the following to try it: $ pip install -U ruff $ ruff --preview --select NPY201 --fix Happily nothing to address on the code baseI tried. Thanks, Peter On Thu, Jan 11, 2024 at 11:32 AM Mateusz Sokol 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