-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2336c07
commit 117ab78
Showing
8 changed files
with
734 additions
and
542 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 |
16 changes: 16 additions & 0 deletions
16
crates/ruff_linter/resources/test/fixtures/numpy/NPY201_3.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,16 @@ | ||
def func(): | ||
import numpy as np | ||
|
||
np.DTypePromotionError | ||
|
||
np.ModuleDeprecationWarning | ||
|
||
np.RankWarning | ||
|
||
np.TooHardError | ||
|
||
np.VisibleDeprecationWarning | ||
|
||
np.chararray | ||
|
||
np.format_parser |
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.