Files
pytorch/pyrefly.toml
2025-05-27 10:16:30 +00:00

88 lines
2.1 KiB
TOML

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"