pyproject.toml 1001 Bytes
Newer Older
1
2
[build-system]
requires = [
3
    "build",
4
5
6
    "cmake>=3.26",
    "packaging",
    "setuptools>=61",
7
    "torch",
8
    "wheel",
9
10
11
12
13
    "tox",
    "auditwheel",
    "patchelf",
    "ninja",
    "Cython",
14
15
16
17
18
19
20
21
22
]
build-backend = "setuptools.build_meta"

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

[tool.codespell]
23
ignore-words-list = "nd, te, ist, LOD, offen, NotIn, HSA"
24
25
26
27
28
29
30
31
32
33
skip = [
    "build",
    "3rdparty",
    "dist",
    ".venv"
]

[tool.ruff.lint]
select = [
    # pycodestyle
34
    "E", "W",
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
    # 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",
    # key in dict.keys()
    "SIM118",
    # memory leaks
    "B019",
    # No such file or directory
    "E902",
]
62
63
[tool.ruff.lint.per-file-ignores]
"3rdparty/**/*" = ["ALL"]