Skip to content

Commit b385686

Browse files
committed
Add support for ruff
1 parent 9fffbba commit b385686

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

pyproject.toml

+28
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,34 @@ skip_gitignore = true
172172
skip = "pytensor/version.py"
173173
skip_glob = "**/*.pyx"
174174

175+
[tool.ruff]
176+
select=["C","E","F","W"]
177+
ignore=["E501","E741","C408","C901"]
178+
exclude = [
179+
"doc/",
180+
"pytensor/_version.py",
181+
"bin/pytensor_cache.py",
182+
]
183+
184+
[tool.ruff.per-file-ignores]
185+
# TODO: Get rid of these:
186+
"**/__init__.py"=["F401","E402","F403"]
187+
"pytensor/tensor/linalg.py"=["F401","F403"]
188+
"pytensor/scalar/basic_scipy.py"=["E402","F403","F401"]
189+
"pytensor/graph/toolbox.py"=["E402","F403","F401"]
190+
"pytensor/link/jax/jax_dispatch.py"=["E402","F403","F401"]
191+
"pytensor/link/jax/jax_linker.py"=["E402","F403","F401"]
192+
"pytensor/sparse/sandbox/sp2.py"=["F401"]
193+
"tests/tensor/test_math_scipy.py"=["E402"]
194+
"tests/sparse/test_basic.py"=["E402"]
195+
"tests/sparse/test_opt.py"=["E402"]
196+
"tests/sparse/test_sp2.py"=["E402"]
197+
"tests/sparse/test_utils.py"=["E402","F401"]
198+
"tests/sparse/sandbox/test_sp.py"=["E402","F401"]
199+
"tests/scalar/test_basic_sympy.py"=["E402"]
200+
"pytensor/graph/rewriting/unify.py"=["F811"]
201+
202+
175203
[tool.mypy]
176204
ignore_missing_imports = true
177205
no_implicit_optional = true

0 commit comments

Comments
 (0)