mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
This fixes behavior in codenav by switching from `replace_imports_with_any` to `ignore-missing-imports` Pull Request resolved: https://github.com/pytorch/pytorch/pull/161200 Approved by: https://github.com/aorenste, https://github.com/albanD
100 lines
2.5 KiB
TOML
100 lines
2.5 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_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__/**",
|
|
"*/.*",
|
|
]
|
|
ignore-missing-imports = [
|
|
"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"
|
|
|
|
# Shut off noisy errors
|
|
errors.implicit-import = false
|
|
|
|
# We exclude test_torch.py because it is full of errors, but most functions lack type signatures,
|
|
# and mypy.ini specifies `check_untyped_defs = False` for this file.
|
|
# If you check even the unannotated stuff mypy produces 322 errors.
|
|
# "test/test_torch.py",
|
|
# Uncomment this file to check
|
|
# [[tool.pyrefly.sub-config]]
|
|
# matches = "test/test_torch.py"
|
|
# untyped-def-behavior = "skip-and-infer-return-any"
|