-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpyproject.toml
More file actions
29 lines (26 loc) · 1.21 KB
/
pyproject.toml
File metadata and controls
29 lines (26 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
[tool.pytest.ini_options]
testpaths = ["test", "mlir_kernels", "contrib", "python"]
addopts = "--import-mode=importlib"
pythonpath = ["contrib", "contrib/kittens/test", "contrib/cpu/python"]
[tool.ruff]
# 88 is black's default; preserved when switching from black to ruff.
line-length = 88
[tool.ruff.lint.per-file-ignores]
# lit config files: `config` is injected by the lit runtime, not a real undefined name.
"test/lit.cfg.py" = ["F821"]
"test/Unit/lit.cfg.py" = ["F821"]
"test/lit.site.cfg.py.in" = ["F821"]
"test/Unit/lit.site.cfg.py.in" = ["F821"]
"contrib/cpu/test/lit.cfg.py" = ["F821"]
# Dialect wrappers re-export from generated code via star imports.
"python/aster/dialects/amdgcn.py" = ["F401", "F403", "F405", "E402"]
"python/aster/dialects/lsir.py" = ["F403", "F405"]
"python/aster/dialects/ptr.py" = ["F403"]
# __init__.py and utility modules re-export intentional public API.
"python/aster/compiler/__init__.py" = ["F401"]
"python/aster/layout/__init__.py" = ["F401"]
"mlir_kernels/nanobenchmarks/utils.py" = ["F401"]
[tool.pyrefly]
search_path = ["build/python_packages", "contrib", "contrib/kittens/test"]
project_includes = ["build/python_packages/aster/**/*.py"]
project_excludes = ["**/node_modules", "**/__pycache__"]