ruff/crates/ruff_linter/resources/test/fixtures/numpy
Mateusz Sokół 1645be018d
Update `NPY001` rule for NumPy 2.0 (#11735)
Hi!

This PR addresses https://github.com/astral-sh/ruff/issues/11093.

It skips `np.bool` and `np.long` replacements as both of these names
were reintroduced in NumPy 2.0 with a different meaning
(https://github.com/numpy/numpy/pull/24922,
https://github.com/numpy/numpy/pull/25080).
With this change `NPY001` will no longer conflict with `NPY201`. For
projects using NumPy 1.x `np.bool` and `np.long` has been deprecated and
removed long time ago, and accessing them yields an informative error
message.
2024-06-04 19:23:42 +00:00
..
NPY001.py Update `NPY001` rule for NumPy 2.0 (#11735) 2024-06-04 19:23:42 +00:00
NPY002.py Add more NPY002 violations (#9862) 2024-02-07 09:54:11 -05:00
NPY003.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
NPY201.py Add missing functions to NumPy 2.0 migration rule (#11528) 2024-05-26 13:24:20 -04:00