[Numpy-discussion] Re: New Ruff rule for migrating to NumPy 2.0

2024-01-11 Thread Peter Cock via NumPy-Discussion
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 li

[Numpy-discussion] Re: next NumPy Newcomers' Hour - 10pm UTC

2024-01-11 Thread Rakshit Singh
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] New Ruff rule for migrating to NumPy 2.0

2024-01-11 Thread Mateusz Sokol
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