-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
57 lines (51 loc) · 1.35 KB
/
Copy pathpyproject.toml
File metadata and controls
57 lines (51 loc) · 1.35 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
[project]
name = "cxbx-tools"
version = "0.1.0"
description = "Developer tooling for the CXBX project"
requires-python = ">=3.14"
dependencies = []
[dependency-groups]
dev = [
"mypy>=2.3",
"ruff>=0.16",
]
[tool.ruff]
line-length = 100
target-version = "py314"
# Sibling-import roots: the tools are standalone scripts that import each other
# by bare module name after a sys.path insert, so first-party detection needs
# every directory that holds an imported module.
src = ["tools", "tools/xtest", "tools/oovpa", "tools/nv2a"]
extend-exclude = [
"tools/xtest/out",
"tools/xtest/__pycache__",
]
[tool.ruff.lint]
select = [
"ANN",
"B",
"E",
"F",
"I",
"RUF",
"UP",
]
[tool.ruff.format]
line-ending = "lf"
[tool.mypy]
python_version = "3.14"
files = ["tools"]
strict = true
# Same reason as ruff's src: resolve the bare sibling imports (traceevt,
# tracegrammar, tool_config, gen_oovpa, ...) the scripts do at runtime.
mypy_path = "tools:tools/xtest:tools/oovpa:tools/nv2a"
exclude = [
"tools/xtest/out",
"tools/xtest/__pycache__",
]
# capstone ships neither stubs nor py.typed. The disassembler is optional at
# runtime (every use site is guarded by try/ImportError), so declare it untyped
# once here rather than repeating an inline ignore at each import.
[[tool.mypy.overrides]]
module = "capstone"
ignore_missing_imports = true