"Fossies" - the Fresh Open Source Software Archive

Member "pytorch-1.8.2/mypy.ini" (23 Jul 2021, 4799 Bytes) of package /linux/misc/pytorch-1.8.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) INI source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "mypy.ini": 1.12.1_vs_1.13.0.

    1 # This is the PyTorch mypy.ini file (note: don't change this line! -
    2 # test_run_mypy in test/test_type_hints.py uses this string)
    3 
    4 [mypy]
    5 cache_dir = .mypy_cache/normal
    6 warn_unused_configs = True
    7 warn_redundant_casts = True
    8 show_error_codes = True
    9 check_untyped_defs = True
   10 follow_imports = silent
   11 
   12 #
   13 # Note: test/ still has syntax errors so can't be added
   14 #
   15 # Typing tests is low priority, but enabling type checking on the
   16 # untyped test functions (using `--check-untyped-defs`) is still
   17 # high-value because it helps test the typing.
   18 #
   19 
   20 files =
   21     torch,
   22     caffe2,
   23     test/type_hint_tests,
   24     test/test_bundled_images.py,
   25     test/test_bundled_inputs.py,
   26     test/test_complex.py,
   27     test/test_dataset.py,
   28     test/test_expecttest.py,
   29     test/test_futures.py,
   30     test/test_numpy_interop.py,
   31     test/test_torch.py,
   32     test/test_type_hints.py,
   33     test/test_type_info.py,
   34     test/test_utils.py,
   35     tools/generate_torch_version.py,
   36     tools/clang_format_utils.py
   37 
   38 
   39 # Minimum version supported - variable annotations were introduced
   40 # in Python 3.6
   41 python_version = 3.6
   42 
   43 
   44 #
   45 # Extension modules without stubs.
   46 #
   47 
   48 [mypy-torch._C._jit_tree_views]
   49 ignore_missing_imports = True
   50 
   51 [mypy-torch.for_onnx.onnx]
   52 ignore_missing_imports = True
   53 
   54 #
   55 # Files with various errors. Mostly real errors, possibly some false
   56 # positives as well.
   57 #
   58 
   59 [mypy-test_torch]
   60 check_untyped_defs = False
   61 
   62 [mypy-torch._torch_docs]
   63 ignore_errors = True
   64 
   65 [mypy-torch.backends._nnapi.*]
   66 ignore_errors = True
   67 
   68 [mypy-torch.testing._internal.hypothesis_utils.*]
   69 ignore_errors = True
   70 
   71 [mypy-torch.testing._internal.common_quantization.*]
   72 ignore_errors = True
   73 
   74 [mypy-torch.testing._internal.generated.*]
   75 ignore_errors = True
   76 
   77 [mypy-torch.testing._internal.distributed.*]
   78 ignore_errors = True
   79 
   80 [mypy-torch.nn.modules.pooling]
   81 ignore_errors = True
   82 
   83 [mypy-torch.nn.parallel._functions]
   84 ignore_errors = True
   85 
   86 [mypy-torch._appdirs]
   87 ignore_errors = True
   88 
   89 [mypy-torch.multiprocessing.pool]
   90 ignore_errors = True
   91 
   92 [mypy-torch.overrides]
   93 ignore_errors = True
   94 
   95 #
   96 # Adding type annotations to caffe2 is probably not worth the effort
   97 # only work on this if you have a specific reason for it, otherwise
   98 # leave these ignores as they are.
   99 #
  100 
  101 [mypy-caffe2.python.*]
  102 ignore_errors = True
  103 
  104 [mypy-caffe2.proto.*]
  105 ignore_errors = True
  106 
  107 [mypy-caffe2.core.nomnigraph.op_gen]
  108 ignore_errors = True
  109 
  110 [mypy-caffe2.contrib.playground.*]
  111 ignore_errors = True
  112 
  113 [mypy-caffe2.contrib.gloo.gloo_test]
  114 ignore_errors = True
  115 
  116 [mypy-caffe2.contrib.warpctc.ctc_ops_test]
  117 ignore_errors = True
  118 
  119 [mypy-caffe2.contrib.prof.cuda_profile_ops_test]
  120 ignore_errors = True
  121 
  122 [mypy-caffe2.contrib.nccl.nccl_ops_test]
  123 ignore_errors = True
  124 
  125 [mypy-caffe2.distributed.store_ops_test_util]
  126 ignore_errors = True
  127 
  128 [mypy-caffe2.experiments.python.device_reduce_sum_bench]
  129 ignore_errors = True
  130 
  131 [mypy-caffe2.experiments.python.SparseTransformer]
  132 ignore_errors = True
  133 
  134 [mypy-caffe2.experiments.python.convnet_benchmarks]
  135 ignore_errors = True
  136 
  137 [mypy-caffe2.contrib.aten.docs.sample]
  138 ignore_errors = True
  139 
  140 [mypy-caffe2.contrib.tensorboard.tensorboard_exporter]
  141 ignore_errors = True
  142 
  143 [mypy-caffe2.contrib.tensorboard.tensorboard_exporter_test]
  144 ignore_errors = True
  145 
  146 [mypy-caffe2.quantization.server.*]
  147 ignore_errors = True
  148 
  149 #
  150 # Third party dependencies that don't have types.
  151 #
  152 
  153 [mypy-tensorflow.*]
  154 ignore_missing_imports = True
  155 
  156 [mypy-tensorboard.*]
  157 ignore_missing_imports = True
  158 
  159 [mypy-onnx.*]
  160 ignore_missing_imports = True
  161 
  162 [mypy-matplotlib.*]
  163 ignore_missing_imports = True
  164 
  165 [mypy-numpy.*]
  166 ignore_missing_imports = True
  167 
  168 [mypy-hypothesis.*]
  169 ignore_missing_imports = True
  170 
  171 [mypy-tqdm.*]
  172 ignore_missing_imports = True
  173 
  174 [mypy-multiprocessing.*]
  175 ignore_missing_imports = True
  176 
  177 [mypy-setuptools.*]
  178 ignore_missing_imports = True
  179 
  180 [mypy-distutils.*]
  181 ignore_missing_imports = True
  182 
  183 [mypy-nvd3.*]
  184 ignore_missing_imports = True
  185 
  186 [mypy-future.utils]
  187 ignore_missing_imports = True
  188 
  189 [mypy-past.builtins]
  190 ignore_missing_imports = True
  191 
  192 [mypy-numba.*]
  193 ignore_missing_imports = True
  194 
  195 [mypy-PIL.*]
  196 ignore_missing_imports = True
  197 
  198 [mypy-moviepy.*]
  199 ignore_missing_imports = True
  200 
  201 [mypy-cv2.*]
  202 ignore_missing_imports = True
  203 
  204 [mypy-torchvision.*]
  205 ignore_missing_imports = True
  206 
  207 [mypy-pycuda.*]
  208 ignore_missing_imports = True
  209 
  210 [mypy-tensorrt.*]
  211 ignore_missing_imports = True
  212 
  213 [mypy-tornado.*]
  214 ignore_missing_imports = True
  215 
  216 [mypy-pydot.*]
  217 ignore_missing_imports = True
  218 
  219 [mypy-networkx.*]
  220 ignore_missing_imports = True
  221 
  222 [mypy-scipy.*]
  223 ignore_missing_imports = True
  224 
  225 [mypy-IPython.*]
  226 ignore_missing_imports = True
  227 
  228 [mypy-google.protobuf.textformat]
  229 ignore_missing_imports = True
  230 
  231 [mypy-lmdb.*]
  232 ignore_missing_imports = True
  233 
  234 [mypy-mpi4py.*]
  235 ignore_missing_imports = True
  236 
  237 [mypy-skimage.*]
  238 ignore_missing_imports = True
  239 
  240 [mypy-librosa.*]
  241 ignore_missing_imports = True
  242 
  243 [mypy-mypy.*]
  244 ignore_missing_imports = True