pyproject.toml 953 Bytes
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
27
28
29
skip = [
    "build",
    "3rdparty",
    "dist",
    ".venv"
]

[tool.ruff.lint]
select = [
    # pycodestyle
30
    "E", "W",
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
    # 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",
]
58
59
[tool.ruff.lint.per-file-ignores]
"3rdparty/**/*" = ["ALL"]