mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Add pyrefly.toml (#154144)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/154144 Approved by: https://github.com/Skylion007
This commit is contained in:
committed by
PyTorch MergeBot
parent
5c6d7caaaa
commit
6f86c1ce1d
88
pyrefly.toml
Normal file
88
pyrefly.toml
Normal file
@ -0,0 +1,88 @@
|
||||
project_includes = [
|
||||
"torch",
|
||||
"caffe2",
|
||||
"test/test_bundled_images.py",
|
||||
"test/test_bundled_inputs.py",
|
||||
"test/test_complex.py",
|
||||
"test/test_datapipe.py",
|
||||
"test/test_futures.py",
|
||||
"test/test_numpy_interop.py",
|
||||
"test/test_torch.py",
|
||||
"test/test_type_hints.py",
|
||||
"test/test_type_info.py",
|
||||
"test/test_utils.py",
|
||||
]
|
||||
project_excludes = [
|
||||
"torch/include/**",
|
||||
"torch/csrc/**",
|
||||
"torch/distributed/elastic/agent/server/api.py",
|
||||
"torch/testing/_internal/**",
|
||||
"torch/distributed/fsdp/fully_sharded_data_parallel.py",
|
||||
"torch/ao/quantization/pt2e/_affine_quantization.py",
|
||||
"torch/nn/modules/pooling.py",
|
||||
"torch/nn/parallel/_functions.py",
|
||||
"torch/_appdirs.py",
|
||||
"torch/multiprocessing/pool.py",
|
||||
"torch/overrides.py",
|
||||
"*/__pycache__/**",
|
||||
"*/.*",
|
||||
]
|
||||
replace_imports_with_any = [
|
||||
"torch._C._jit_tree_views.*",
|
||||
"torch.for_onnx.onnx.*",
|
||||
"torch.ao.quantization.experimental.apot_utils.*",
|
||||
"torch.ao.quantization.experimental.quantizer.*",
|
||||
"torch.ao.quantization.experimental.observer.*",
|
||||
"torch.ao.quantization.experimental.APoT_tensor.*",
|
||||
"torch.ao.quantization.experimental.fake_quantize_function.*",
|
||||
"torch.ao.quantization.experimental.fake_quantize.*",
|
||||
"triton.*",
|
||||
"tensorflow.*",
|
||||
"tensorboard.*",
|
||||
"matplotlib.*",
|
||||
"numpy.*",
|
||||
"sympy.*",
|
||||
"hypothesis.*",
|
||||
"tqdm.*",
|
||||
"multiprocessing.*",
|
||||
"setuptools.*",
|
||||
"distutils.*",
|
||||
"nvd3.*",
|
||||
"future.utils.*",
|
||||
"past.builtins.*",
|
||||
"numba.*",
|
||||
"PIL.*",
|
||||
"moviepy.*",
|
||||
"cv2.*",
|
||||
"torchvision.*",
|
||||
"pycuda.*",
|
||||
"tensorrt.*",
|
||||
"tornado.*",
|
||||
"pydot.*",
|
||||
"networkx.*",
|
||||
"scipy.*",
|
||||
"IPython.*",
|
||||
"google.protobuf.textformat.*",
|
||||
"lmdb.*",
|
||||
"mpi4py.*",
|
||||
"skimage.*",
|
||||
"librosa.*",
|
||||
"mypy.*",
|
||||
"xml.*",
|
||||
"boto3.*",
|
||||
"dill.*",
|
||||
"usort.*",
|
||||
"cutlass_library.*",
|
||||
"deeplearning.*",
|
||||
"einops.*",
|
||||
"libfb.*",
|
||||
"torch.fb.*",
|
||||
"torch.*.fb.*",
|
||||
"torch_xla.*",
|
||||
"onnx.*",
|
||||
"onnxruntime.*",
|
||||
"onnxscript.*",
|
||||
"redis.*"
|
||||
]
|
||||
|
||||
untyped_def_behavior = "check-and-infer-return-any"
|
Reference in New Issue
Block a user