@@ -144,27 +144,21 @@ lines-after-imports = 2
144144# TODO: Get rid of these:
145145"**/__init__.py" = [" F401" , " E402" , " F403" ]
146146"pytensor/tensor/linalg.py" = [" F403" ]
147+ # Modules that use print-statements, skip "T201"
147148"pytensor/link/c/cmodule.py" = [" PTH" , " T201" ]
148149"pytensor/misc/elemwise_time_test.py" = [" T201" ]
149150"pytensor/misc/elemwise_openmp_speedup.py" = [" T201" ]
150151"pytensor/misc/check_duplicate_key.py" = [" T201" ]
151152"pytensor/misc/check_blas.py" = [" T201" ]
152153"pytensor/bin/pytensor_cache.py" = [" T201" ]
153- # For the tests we skip `E402` because `pytest.importorskip` is used:
154- "tests/link/jax/test_scalar.py" = [" E402" ]
155- "tests/link/jax/test_tensor_basic.py" = [" E402" ]
156- "tests/link/numba/test_basic.py" = [" E402" ]
157- "tests/link/numba/test_cython_support.py" = [" E402" ]
158- "tests/link/numba/test_performance.py" = [" E402" ]
159- "tests/link/numba/test_sparse.py" = [" E402" ]
160- "tests/link/numba/test_tensor_basic.py" = [" E402" ]
161- "tests/tensor/test_math_scipy.py" = [" E402" ]
162- "tests/sparse/test_basic.py" = [" E402" ]
163- "tests/sparse/test_sp2.py" = [" E402" ]
164- "tests/sparse/test_utils.py" = [" E402" ]
165- "tests/sparse/sandbox/test_sp.py" = [" E402" , " F401" ]
166154"tests/compile/test_monitormode.py" = [" T201" ]
167155"scripts/run_mypy.py" = [" T201" ]
156+ # Test modules of optional backends that use `pytest.importorskip`, skip "E402"
157+ "tests/link/jax/**/test_*.py" = [" E402" ]
158+ "tests/link/numba/**/test_*.py" = [" E402" ]
159+ "tests/link/pytorch/**/test_*.py" = [" E402" ]
160+ "tests/link/mlx/**/test_*.py" = [" E402" ]
161+
168162
169163
170164[tool .mypy ]
0 commit comments