pyproject.toml 1.15 KB
Newer Older
1
2
[build-system]
requires = [
3
    "build",
4
5
6
7
    "cmake>=3.26",
    "packaging",
    "setuptools>=61",
    "wheel",
8
    "patchelf",
9
    "Cython>=3.0.0",
10
11
12
13
14
15
16
17
18
]
build-backend = "setuptools.build_meta"

[tool.yapf]
based_on_style = "yapf"
column_limit = 100
indent_width = 4

[tool.codespell]
19
ignore-words-list = "nd, te, ist, LOD, offen, NotIn, HSA"
20
21
22
23
24
25
26
skip = [
    "build",
    "3rdparty",
    "dist",
    ".venv"
]

27
28
29
30
31
[tool.ruff]
target-version = "py38"
line-length = 100
output-format = "full"

32
33
34
[tool.ruff.lint]
select = [
    # pycodestyle
35
    "E", "W",
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
    # Pyflakes
    "F",
    # pyupgrade
    # "UP",
    # flake8-bugbear
    "B",
    # flake8-simplify
    "SIM",
    # isort
    # "I",
]
ignore = [
    # Module level import not at top of file
    "E402",
    # star imports
    "F405", "F403",
    # ambiguous name
    "E741",
    # line too long
    "E501",
56
57
    # if-else-block instead of ternary
    "SIM108",
58
59
60
61
    # key in dict.keys()
    "SIM118",
    # memory leaks
    "B019",
62
63
    # zip without explicit strict
    "B905",
64
65
66
    # No such file or directory
    "E902",
]
67
68
[tool.ruff.lint.per-file-ignores]
"3rdparty/**/*" = ["ALL"]
69
"examples/deepseek_v32/inference/**/*" = ["ALL"]