pytorch/test/torch_np
Aaron Gokaslan 668eb55488 [BE]: Enable some basic pytest style rules (#110362)
Adds some basic flake8-pytest-style rules from ruff with their autofixes. I just picked a couple uncontroversial changes about having a consistent pytest style that were already following. We should consider enabling some more in the future, but this is a good start. I also upgraded ruff to the latest version.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/110362
Approved by: https://github.com/ezyang, https://github.com/albanD, https://github.com/kit1980
2023-10-05 21:40:43 +00:00
..
numpy_tests [BE]: Enable some basic pytest style rules (#110362) 2023-10-05 21:40:43 +00:00
__init__.py
check_tests_conform.py MAINT: pytorchify torch._numpy tests: core/ and fft/ (#109815) 2023-09-29 22:36:13 +00:00
conftest.py
test_basic.py MAINT/TST: pytorch-ify torch._numpy tests (added tests only, not vendored) (#109593) 2023-09-23 18:18:50 +00:00
test_binary_ufuncs.py MAINT/TST: pytorch-ify torch._numpy tests (added tests only, not vendored) (#109593) 2023-09-23 18:18:50 +00:00
test_dtype.py TST: pytorchify test/torch_np/test_dtype.py (#109967) 2023-09-24 13:34:02 +00:00
test_function_base.py BUG: fix torch._numpy.arange(5, dtype="float32") (#110005) 2023-09-28 18:21:18 +00:00
test_ndarray_methods.py MAINT/TST: pytorch-ify torch._numpy tests (added tests only, not vendored) (#109593) 2023-09-23 18:18:50 +00:00
test_nep50_examples.py MAINT/TST: pytorch-ify torch._numpy tests (added tests only, not vendored) (#109593) 2023-09-23 18:18:50 +00:00
test_random.py MAINT/TST: pytorch-ify torch._numpy tests (added tests only, not vendored) (#109593) 2023-09-23 18:18:50 +00:00
test_reductions.py MAINT/TST: pytorch-ify torch._numpy tests (added tests only, not vendored) (#109593) 2023-09-23 18:18:50 +00:00
test_scalars_0D_arrays.py MAINT/TST: pytorch-ify torch._numpy tests (added tests only, not vendored) (#109593) 2023-09-23 18:18:50 +00:00
test_ufuncs_basic.py MAINT/TST: pytorch-ify torch._numpy tests (added tests only, not vendored) (#109593) 2023-09-23 18:18:50 +00:00
test_unary_ufuncs.py MAINT/TST: pytorch-ify torch._numpy tests (added tests only, not vendored) (#109593) 2023-09-23 18:18:50 +00:00