pytorch/test
Aaron Gokaslan 597b558c51 [BE]: Update flake8 and plugins and fix bugs (#97795)
Update flake8 and flake8-plugins in lintrunner to a modern version. Enables more checks and makes flake8 checks significantly faster. Added a few additional rule ignores that will need to be fixed in the future.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/97795
Approved by: https://github.com/alexsio27444, https://github.com/janeyx99, https://github.com/ezyang
2023-03-28 23:51:55 +00:00
..
_nvfuser adding symbolic link to get CI to run tests where cmake is not run on CI node (#95402) 2023-03-01 19:01:18 +00:00
ao/sparsity [BE] Apply almost all remaining flake8-comprehension checks (#94676) 2023-02-12 01:01:25 +00:00
autograd [autograd] disable backward/grad for complex scalar output (#92753) 2023-02-23 11:38:27 +00:00
backends/xeon enable taskset core pinning in addition to numactl (#96011) 2023-03-07 01:19:46 +00:00
benchmark_utils [BE] Remove unnecessary dict comprehensions (#97116) 2023-03-20 00:56:57 +00:00
bottleneck_test [BE] [3/3] Rewrite super() calls in test (#94592) 2023-02-12 22:20:53 +00:00
cpp Revert "[BE][autograd Function] Raise an error if input is returned as-is and saved for forward or backward in setup_context (#97212)" 2023-03-28 18:30:51 +00:00
cpp_api_parity [BE] Remove unnecessary dict comprehensions (#97116) 2023-03-20 00:56:57 +00:00
cpp_extensions Fix typo for generator. (#97136) 2023-03-20 20:43:56 +00:00
custom_backend [BE] [3/3] Rewrite super() calls in test (#94592) 2023-02-12 22:20:53 +00:00
custom_operator Enable TestTorchbind on Windows (#96507) 2023-03-16 16:18:08 +00:00
distributed [FSDP][8/N] Simplify addr padding internals (#97796) 2023-03-28 22:19:44 +00:00
distributions Fix gumbel cdf (#91698) 2023-03-07 23:04:47 +00:00
dynamo Graph break on operators that fake tensor doesn't support (#97708) 2023-03-28 19:49:54 +00:00
edge [executorch] Add RuntimeContext to generated C++ API Signature (#94570) 2023-02-16 02:43:18 +00:00
error_messages
expect Resubmit _int_mm (#96685) 2023-03-27 16:14:07 +00:00
export Add experimental torch.export prototype (#95070) 2023-02-28 02:40:19 +00:00
forward_backward_compatibility Refactor NT offsets metadata to be a Tensor (#96909) 2023-03-21 18:51:35 +00:00
functorch [BE]: Update flake8 and plugins and fix bugs (#97795) 2023-03-28 23:51:55 +00:00
fx [1/n] Add verifier for EXIR Aten dialect (#94783) 2023-03-08 04:55:54 +00:00
inductor [BE]: Update flake8 and plugins and fix bugs (#97795) 2023-03-28 23:51:55 +00:00
jit [BE]: Update flake8 and plugins and fix bugs (#97795) 2023-03-28 23:51:55 +00:00
jit_hooks
lazy [BE] [3/3] Rewrite super() calls in test (#94592) 2023-02-12 22:20:53 +00:00
mobile [BE] [3/3] Rewrite super() calls in test (#94592) 2023-02-12 22:20:53 +00:00
nn Move empty check to the start of _pack_padded_sequence (#94885) 2023-03-22 04:16:58 +00:00
onnx [ONNX] Support converting fx graph with symbolic shape to ONNX (#96350) 2023-03-24 15:47:55 +00:00
onnx_caffe2 [BE] [3/3] Rewrite super() calls in test (#94592) 2023-02-12 22:20:53 +00:00
package [BE] [3/3] Rewrite super() calls in test (#94592) 2023-02-12 22:20:53 +00:00
profiler Fix potential naming clash when writing traces with tensorboard_trace_handler (#97392) 2023-03-23 16:53:11 +00:00
quantization [BE]: Update flake8 and plugins and fix bugs (#97795) 2023-03-28 23:51:55 +00:00
scripts
test_img
typing
allowlist_for_publicAPI.json temp fix for segment reduce undocumented FC window (#94242) 2023-02-07 18:27:01 +00:00
conftest.py Run more tests through pytest (#95844) 2023-03-03 17:32:26 +00:00
create_dummy_torchscript_model.py Add basic Module serialization BC test (#96238) 2023-03-08 21:01:27 +00:00
delete.py
HowToWriteTestsUsingFileCheck.md
linear.py
load_torchscript_model.py Add basic Module serialization BC test (#96238) 2023-03-08 21:01:27 +00:00
mkl_verbose.py
mkldnn_verbose.py [BE] [3/3] Rewrite super() calls in test (#94592) 2023-02-12 22:20:53 +00:00
run_doctests.sh
run_test.py [BE] Apply ufmt to run_test and GitHub Python util scripts (#97588) 2023-03-26 04:52:55 +00:00
simulate_nccl_errors.py
test_ao_sparsity.py
test_autocast.py [BE] [3/3] Rewrite super() calls in test (#94592) 2023-02-12 22:20:53 +00:00
test_autograd.py Modify all calls to checkpoint pass use_reentrant explicitly (#97376) 2023-03-27 13:37:42 +00:00
test_binary_ufuncs.py Fix CPU bitwise shifts for out-of-limit shift values (#96659) 2023-03-17 21:35:34 +00:00
test_bundled_images.py
test_bundled_inputs.py [BE] Apply almost all remaining flake8-comprehension checks (#94676) 2023-02-12 01:01:25 +00:00
test_comparison_utils.py Add missing __main__ in two unittests (#97302) 2023-03-22 19:09:08 +00:00
test_complex.py
test_cpp_api_parity.py
test_cpp_extensions_aot.py [BE] [3/3] Rewrite super() calls in test (#94592) 2023-02-12 22:20:53 +00:00
test_cpp_extensions_jit.py [BE] [3/3] Rewrite super() calls in test (#94592) 2023-02-12 22:20:53 +00:00
test_cpp_extensions_open_device_registration.py Fix typo for generator. (#97136) 2023-03-20 20:43:56 +00:00
test_cuda.py [memory history] cleanup recording API (#97406) 2023-03-28 16:31:10 +00:00
test_cuda_nvml_based_avail.py Reduce pytest blocklist (#96016) 2023-03-07 18:30:27 +00:00
test_cuda_primary_ctx.py Reduce pytest blocklist (#96016) 2023-03-07 18:30:27 +00:00
test_cuda_sanitizer.py Reduce pytest blocklist (#96016) 2023-03-07 18:30:27 +00:00
test_cuda_trace.py Reduce pytest blocklist (#96016) 2023-03-07 18:30:27 +00:00
test_dataloader.py Jetson Update for CI Redo (#94549) 2023-02-21 17:13:38 +00:00
test_datapipe.py [DataPipe] Add copy option to fork DataPipe (#96030) 2023-03-10 17:31:56 +00:00
test_decomp.py addmv decomp #2 (#96264) 2023-03-16 23:09:45 +00:00
test_deploy.py
test_determination.py [BE]: pyupgrade Python to 3.8 - imports and object inheritance only (#94308) 2023-02-07 21:10:56 +00:00
test_dispatch.py
test_dlpack.py Jetson Update for CI Redo (#94549) 2023-02-21 17:13:38 +00:00
test_dynamic_shapes.py dont bake in defaults when tracing *_like factories (#97564) 2023-03-27 22:53:44 +00:00
test_expanded_weights.py [decompositions] GRU decompositon with and without packed sequence (#91466) 2023-02-08 14:16:30 +00:00
test_fake_tensor.py Use .to instead of contiguous to generate channels last tensor (#96791) 2023-03-15 19:12:04 +00:00
test_flop_counter.py fix flop formulas for sdpa (#96690) 2023-03-16 04:55:56 +00:00
test_foreach.py [test_foreach] add cases of zero size tensors (#95028) 2023-03-23 00:12:13 +00:00
test_function_schema.py
test_functional_autograd_benchmark.py
test_functional_optim.py [BE]: pyupgrade Python to 3.8 - imports and object inheritance only (#94308) 2023-02-07 21:10:56 +00:00
test_functionalization.py dont bake in defaults when tracing *_like factories (#97564) 2023-03-27 22:53:44 +00:00
test_futures.py
test_fx.py Rename PyOperator to HigherOrderOperator (#97493) 2023-03-24 05:04:02 +00:00
test_fx_experimental.py Add meta function for _upsample_bilinear2d_aa (#94982) 2023-02-19 07:11:20 +00:00
test_fx_passes.py
test_fx_reinplace_pass.py
test_hub.py
test_import_stats.py
test_indexing.py Don't truncate leading 1s if they are unbacked (#95141) 2023-02-21 00:22:24 +00:00
test_itt.py [BE] [3/3] Rewrite super() calls in test (#94592) 2023-02-12 22:20:53 +00:00
test_jit.py [PyTorch] Optimize DictType::annotation_str_impl (#96498) 2023-03-24 02:38:21 +00:00
test_jit_autocast.py [Dynamo] Support torch.{cuda/cpu}.amp.autocast (#95416) 2023-03-10 21:48:08 +00:00
test_jit_cuda_fuser.py adding symbolic link to get CI to run tests where cmake is not run on CI node (#95402) 2023-03-01 19:01:18 +00:00
test_jit_disabled.py [BE] [3/3] Rewrite super() calls in test (#94592) 2023-02-12 22:20:53 +00:00
test_jit_fuser.py [BE] [3/3] Rewrite super() calls in test (#94592) 2023-02-12 22:20:53 +00:00
test_jit_fuser_legacy.py [BE] Prefer dash over underscore in command-line options (#94505) 2023-02-09 20:16:49 +00:00
test_jit_fuser_te.py PT2/TorchScript interoperability fix (#94678) 2023-02-15 01:21:10 +00:00
test_jit_legacy.py [BE] Prefer dash over underscore in command-line options (#94505) 2023-02-09 20:16:49 +00:00
test_jit_llga_fuser.py [BE] [3/3] Rewrite super() calls in test (#94592) 2023-02-12 22:20:53 +00:00
test_jit_profiling.py [BE] Prefer dash over underscore in command-line options (#94505) 2023-02-09 20:16:49 +00:00
test_jit_simple.py [BE] Prefer dash over underscore in command-line options (#94505) 2023-02-09 20:16:49 +00:00
test_jit_string.py
test_jiterator.py Reduce pytest blocklist (#96016) 2023-03-07 18:30:27 +00:00
test_kernel_launch_checks.py
test_legacy_vmap.py Remove deprecated torch.symeig (#70988) 2023-01-31 11:59:11 +00:00
test_license.py
test_linalg.py Resubmit _int_mm (#96685) 2023-03-27 16:14:07 +00:00
test_logging.py
test_masked.py
test_maskedtensor.py fix random mask creation in test_maskedtensor (#97017) 2023-03-24 23:55:17 +00:00
test_matmul_cuda.py Jetson Update for CI Redo (#94549) 2023-02-21 17:13:38 +00:00
test_meta.py Fixes for PyTorch/XLA functionalization integration (#94537) 2023-03-02 23:02:34 +00:00
test_metal.py [BE] [3/3] Rewrite super() calls in test (#94592) 2023-02-12 22:20:53 +00:00
test_mkl_verbose.py
test_mkldnn.py Split rnn primitive for inference and training (#96736) 2023-03-27 11:14:15 +00:00
test_mkldnn_fusion.py [BE] [3/3] Rewrite super() calls in test (#94592) 2023-02-12 22:20:53 +00:00
test_mkldnn_verbose.py
test_mobile_optimizer.py [BE] [3/3] Rewrite super() calls in test (#94592) 2023-02-12 22:20:53 +00:00
test_model_dump.py [BE] Modernize PyTorch even more for 3.8 with pyupgrade (#94520) 2023-02-10 18:02:50 +00:00
test_module_init.py Adding nn.ZeroPad1d and nn.ZeroPad3d (#96295) 2023-03-10 03:51:41 +00:00
test_modules.py [BE] Apply almost all remaining flake8-comprehension checks (#94676) 2023-02-12 01:01:25 +00:00
test_monitor.py
test_mps.py [MPS] Fix index_select_scalar test (#97773) 2023-03-28 19:23:59 +00:00
test_multiprocessing.py [BE] [3/3] Rewrite super() calls in test (#94592) 2023-02-12 22:20:53 +00:00
test_multiprocessing_spawn.py [BE]: pyupgrade Python to 3.8 - imports and object inheritance only (#94308) 2023-02-07 21:10:56 +00:00
test_namedtensor.py
test_namedtuple_return_api.py [BE] Enable more flake8-comprehensions checks (#94601) 2023-02-10 23:40:29 +00:00
test_native_functions.py
test_native_mha.py
test_nestedtensor.py Implement last dim split_with_sizes for NT (forward only, non-SymInt-ified) (#97446) 2023-03-23 22:17:06 +00:00
test_nn.py [Better Transformer] make is_causal a hint and force attn_mask to be set on is_causal=True in F.MHA (#97214) 2023-03-25 01:36:30 +00:00
test_nnapi.py [BE] [3/3] Rewrite super() calls in test (#94592) 2023-02-12 22:20:53 +00:00
test_numba_integration.py
test_numpy_interop.py
test_nvfuser_dynamo.py adding symbolic link to get CI to run tests where cmake is not run on CI node (#95402) 2023-03-01 19:01:18 +00:00
test_nvfuser_frontend.py adding symbolic link to get CI to run tests where cmake is not run on CI node (#95402) 2023-03-01 19:01:18 +00:00
test_openmp.py
test_ops.py Enable min.unary_out (#96441) 2023-03-11 19:23:33 +00:00
test_ops_fwd_gradients.py
test_ops_gradients.py
test_ops_jit.py
test_optim.py Change 1D Tensor of 1 element to 0D Tensor (#96994) 2023-03-21 18:24:19 +00:00
test_overrides.py Remove unnecessary retain_grad call from gradcheck (#96923) 2023-03-27 13:38:28 +00:00
test_package.py Reduce pytest blocklist part 2 (#96397) 2023-03-10 19:10:43 +00:00
test_per_overload_api.py
test_prims.py [primTorch] Redefine prim.collapse{,_view} end point to be inclusive (#92017) 2023-02-21 20:36:50 +00:00
test_proxy_tensor.py dont bake in defaults when tracing *_like factories (#97564) 2023-03-27 22:53:44 +00:00
test_pruning_op.py Add missing __main__ in two unittests (#97302) 2023-03-22 19:09:08 +00:00
test_public_bindings.py Jetson Update for CI Redo (#94549) 2023-02-21 17:13:38 +00:00
test_python_dispatch.py Support registering op returning symint in python (#95240) 2023-02-22 04:56:37 +00:00
test_pytree.py
test_quantization.py Init quantization backend config for inductor (#96476) 2023-03-22 07:56:56 +00:00
test_reductions.py [Fix] Inbound check of sorter indices in searchsorted (#95109) 2023-02-20 04:59:11 +00:00
test_scatter_gather_ops.py
test_schema_check.py
test_segment_reductions.py Make segment_reduce properly private. (#93166) 2023-02-06 18:32:23 +00:00
test_serialization.py Add float to list of allowed ops (#94910) 2023-02-15 23:13:21 +00:00
test_set_default_mobile_cpu_allocator.py
test_shape_ops.py Jetson Update for CI Redo (#94549) 2023-02-21 17:13:38 +00:00
test_show_pickle.py
test_sort_and_select.py Enable half type support for unique cpu (#91666) 2023-02-16 04:59:35 +00:00
test_sparse.py Deprecate gradcheck check_sparse_nnz argument as duplicate of masked argument (#97187) 2023-03-22 14:11:03 +00:00
test_sparse_csr.py Fix sparse addmv ref impl for non-contig tensors (#97730) 2023-03-28 20:46:32 +00:00
test_spectral_ops.py Fix usages of contextmanager without finally (#96170) 2023-03-08 20:59:27 +00:00
test_stateless.py [functorch][nn] Refactor NN stateless APIs by swapping module tensors (#92536) 2023-02-08 17:31:38 +00:00
test_static_runtime.py [BE] [3/3] Rewrite super() calls in test (#94592) 2023-02-12 22:20:53 +00:00
test_subclass.py
test_sympy_utils.py Use maxint to bound integers. (#96121) 2023-03-07 12:46:19 +00:00
test_tensor_creation_ops.py Fix NumPy scalar arrays to tensor conversion (#97696) 2023-03-28 03:00:18 +00:00
test_tensorboard.py Use is_available instead of device_count to check for CUDA availability (#97043) 2023-03-18 00:39:42 +00:00
test_tensorexpr.py PT2/TorchScript interoperability fix (#94678) 2023-02-15 01:21:10 +00:00
test_tensorexpr_pybind.py
test_testing.py disallow invalid value ranges in torch.testing.make_tensor (#96334) 2023-03-24 23:55:17 +00:00
test_throughput_benchmark.py [BE] [3/3] Rewrite super() calls in test (#94592) 2023-02-12 22:20:53 +00:00
test_torch.py Revert "test/test_torch.py: fix TestTorch::test_from_buffer test (#96952)" (#97759) 2023-03-28 18:43:08 +00:00
test_transformers.py [Better Transformer] make is_causal a hint and force attn_mask to be set on is_causal=True in F.MHA (#97214) 2023-03-25 01:36:30 +00:00
test_type_hints.py
test_type_info.py
test_type_promotion.py QoL improvements for torch.testing.make_tensor (#96125) 2023-03-24 23:55:17 +00:00
test_typing.py Run tests in USE_PYTEST_LIST through run_tests (#95659) 2023-02-28 22:09:01 +00:00
test_unary_ufuncs.py [BE] Remove dependency on six and future (#94709) 2023-02-14 09:14:14 +00:00
test_utils.py Modify all calls to checkpoint pass use_reentrant explicitly (#97376) 2023-03-27 13:37:42 +00:00
test_view_ops.py
test_vulkan.py [BE] [3/3] Rewrite super() calls in test (#94592) 2023-02-12 22:20:53 +00:00
test_weak.py [BE]: pyupgrade Python to 3.8 - imports and object inheritance only (#94308) 2023-02-07 21:10:56 +00:00
test_xnnpack_integration.py [BE] [3/3] Rewrite super() calls in test (#94592) 2023-02-12 22:20:53 +00:00