-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split NPY201 tests into two files to avoid exceeding the max iterations
- Loading branch information
1 parent
9fec384
commit c848712
Showing
5 changed files
with
543 additions
and
541 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
crates/ruff_linter/resources/test/fixtures/numpy/NPY201_2.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
def func(): | ||
import numpy as np | ||
|
||
np.obj2sctype(int) | ||
|
||
np.PINF | ||
|
||
np.PZERO | ||
|
||
np.recfromcsv | ||
|
||
np.recfromtxt | ||
|
||
np.round_(12.34) | ||
|
||
np.safe_eval | ||
|
||
np.sctype2char | ||
|
||
np.sctypes | ||
|
||
np.seterrobj | ||
|
||
np.set_numeric_ops | ||
|
||
np.set_string_function | ||
|
||
np.singlecomplex(12+1j) | ||
|
||
np.string_("asdf") | ||
|
||
np.source | ||
|
||
np.tracemalloc_domain | ||
|
||
np.unicode_("asf") | ||
|
||
np.who() | ||
|
||
np.row_stack(([1,2], [3,4])) | ||
|
||
np.alltrue([True, True]) | ||
|
||
np.anytrue([True, False]) | ||
|
||
np.cumproduct([1, 2, 3]) | ||
|
||
np.product([1, 2, 3]) | ||
|
||
np.trapz([1, 2, 3]) | ||
|
||
np.in1d([1, 2], [1, 3, 5]) | ||
|
||
np.AxisError | ||
|
||
np.ComplexWarning | ||
|
||
np.compare_chararrays |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.