-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpyproject.toml
More file actions
60 lines (56 loc) · 1.97 KB
/
Copy pathpyproject.toml
File metadata and controls
60 lines (56 loc) · 1.97 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
[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__"]
[tool.pyright]
# The aster package ships generated code (TableGen + nanobind) into
# build/python_packages; that copy is what type-checking resolves against.
# Source under python/ is missing the generated *_ops_gen.py and *.so stubs.
extraPaths = [
"build/python_packages",
"contrib",
"contrib/kittens/test",
"contrib/cpu/python",
]
include = [
"python",
"build/python_packages/aster",
"contrib",
"mlir_kernels",
"test",
]
exclude = [
"**/__pycache__",
"**/.aster",
"**/node_modules",
"build/_deps",
"build/CMakeFiles",
]
# Reduce noise from MLIR bindings; the generated stubs lack full type info.
reportMissingTypeStubs = "none"
reportMissingModuleSource = "none"
pythonVersion = "3.12"
venvPath = "."
venv = ".aster"