Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
115 lines (103 loc) · 3.37 KB
/
Copy pathpyproject.toml
File metadata and controls
115 lines (103 loc) · 3.37 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
[project]
name = "xtc-tools"
dynamic = ["version"]
readme = "README.md"
license = "BSD-3-Clause"
authors = [{ name = "Hugo Pompougnac", email = "hugo.pompougnac@inria.fr" }]
classifiers = ["Programming Language :: Python :: 3"]
requires-python = ">=3.10"
dependencies = [
'jinja2',
'matplotlib',
'numpy<2.3',
'ordered-set',
'py-cpuinfo',
'tqdm',
'typing_extensions',
'xtc-build~=0.1.0',
'pyyaml',
'scikit-learn',
'xdsl~=0.57.1',
'strictyaml',
'tomlkit',
]
[project.optional-dependencies]
default = ['xtc-llvm-tools==22.1.8.2', 'xtc-mlir-tools==22.1.8.3', 'xtc-mlir-python-bindings==22.1.8.3', 'xtc-mlir-extra-tools==22.1.8.9', 'apache-tvm==0.26.0', 'apache-tvm-ffi==0.1.13.post3']
dev = ['xtc-llvm-tools==22.1.8.2', 'xtc-mlir-tools==22.1.8.3', 'xtc-mlir-python-bindings==22.1.8.3', 'xtc-mlir-extra-tools==22.1.8.9', 'apache-tvm==0.26.0', 'apache-tvm-ffi==0.1.13.post3', "coverage>=7.8.0", "filecheck==1.0.3", "lit", "mkdocs", "mkdocs-material", "mkdocstrings-python", "mypy==2.3.1", "pytest", "pytest-xdist", "pyright==1.1.414", "types-PyYAML", "marimo==0.19.6", "ruff==0.16.8"]
test = ["coverage>=7.8.0", "filecheck==1.0.3", "lit", "mkdocs", "mkdocs-material", "mkdocstrings-python", "mypy==2.3.1", "pytest", "pytest-xdist", "pyright==1.1.414", "types-PyYAML", "marimo==0.19.6", "ruff==0.16.8"]
mlir = ['xtc-llvm-tools==22.1.8.2', 'xtc-mlir-tools==22.1.8.3', 'xtc-mlir-python-bindings==22.1.8.3', 'xtc-mlir-extra-tools==22.1.8.9']
tvm = ['apache-tvm==0.26.0', 'apache-tvm-ffi==0.1.13.post3']
[tool.setuptools]
platforms = ["Linux"]
zip-safe = false
[tool.setuptools.package-data]
xtc = [
"py.typed",
"csrcs/**",
"templates/**",
]
[project.scripts]
mlir-loop = "xtc.cli.mlir_loop:main"
mlir-backend = "xtc.cli.mlir_backend:main"
loop-display = "xtc.cli.display_results:main"
loop-explore = "xtc.cli.explore:main"
loop-results = "xtc.cli.query_results:main"
[build-system]
requires = ["setuptools>=64", "setuptools-scm[toml]>=8", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
tag_regex = "^xtc-v(?P<version>\\d+\\.\\d+\\.\\d+)$"
git_describe_command = "git describe --dirty --tags --long --match xtc-v*"
version_scheme = "guess-next-dev"
local_scheme = "no-local-version"
[tool.pyright]
pythonVersion = "3.10"
include = ["src/xtc", "docs/marimo"]
reportMissingParameterType = "error"
reportImplicitOverride = "error"
reportUninitializedInstanceVariable = "error"
reportPossiblyUnboundVariable = "error"
reportIncompatibleVariableOverride = "error"
reportIncompatibleMethodOverride = "error"
reportArgumentType = "error"
reportReturnType = "error"
reportAbstractUsage = "error"
reportUnusedExpression = false
reportUnusedImport = "error"
# Avoids error when modules are not installed (for instance tvm or jir)
reportMissingImports = false
# Those are too strict
#reportMissingTypeArgument = "error"
[tool.mypy]
python_version = "3.10"
packages = ["xtc", "docs.marimo"]
ignore_missing_imports = true
check_untyped_defs = true
[tool.coverage.run]
branch = true
parallel = true
source = ["xtc"]
[tool.coverage.report]
skip_empty = true
exclude_also = [
"pass",
"\\.\\.\\.",
]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra"
testpaths = ["tests/pytest"]
[tool.ruff]
target-version = "py310"
respect-gitignore = false
exclude = [
".venv",
"venv",
"build",
"dist",
"public",
"docs",
"tests",
]
line-length = 88
indent-width = 4