Skip to content

Commit 56b71e5

Browse files
committed
Add support for ruff
1 parent e33b95b commit 56b71e5

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

pyproject.toml

+27
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,33 @@ 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+
"**/__init__.py"=["F401","E402","F403"]
186+
"pytensor/tensor/linalg.py"=["F401","F403"]
187+
"pytensor/scalar/basic_scipy.py"=["E402","F403","F401"]
188+
"pytensor/graph/toolbox.py"=["E402","F403","F401"]
189+
"pytensor/link/jax/jax_dispatch.py"=["E402","F403","F401"]
190+
"pytensor/link/jax/jax_linker.py"=["E402","F403","F401"]
191+
"pytensor/sparse/sandbox/sp2.py"=["F401"]
192+
"tests/tensor/test_math_scipy.py"=["E402"]
193+
"tests/sparse/test_basic.py"=["E402"]
194+
"tests/sparse/test_opt.py"=["E402"]
195+
"tests/sparse/test_sp2.py"=["E402"]
196+
"tests/sparse/test_utils.py"=["E402","F401"]
197+
"tests/sparse/sandbox/test_sp.py"=["E402","F401"]
198+
"tests/scalar/test_basic_sympy.py"=["E402"]
199+
"pytensor/graph/rewriting/unify.py"=["F811"]
200+
201+
175202
[tool.mypy]
176203
ignore_missing_imports = true
177204
no_implicit_optional = true

0 commit comments

Comments
 (0)