"git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "24af9fa532c1194d37b232772575a70f3e08764a"
pyproject.toml 954 Bytes
Newer Older
1
2
3
[tool.isort]
line_length = 120
skip_glob = [
4
5
    "*/external_libs/*",
    "*/lightgbm-python/*"
6
7
8
9
10
11
]

[tool.mypy]
exclude = 'build/*|compile/*|docs/*|examples/*|external_libs/*|lightgbm-python/*|tests/*'
ignore_missing_imports = true

12
13
14
15
16
17
18
19
[tool.ruff]
exclude = [
    "build",
    "compile",
    "docs",
    "external_libs",
    "lightgbm-python",
    "setup.py"
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
ignore = [
    # (pydocstyle) Missing docstring in magic method
    "D105",
    # (pycodestyle) Line too long
    "E501"
]
select = [
    # flake8-bugbear
    "B",
    # flake8-comprehensions
    "C4",
    # pydocstyle
    "D",
    # pycodestyle
    "E",
    # pyflakes
    "F"
]

# this should be set to the oldest version of python LightGBM supports
target-version = "py37"

[tool.ruff.per-file-ignores]
"examples/*" = [
    # pydocstyle
    "D"
]
"tests/*" = [
    # (flake8-bugbear) Found useless expression
    "B018",
    # pydocstyle
    "D"
]

[tool.ruff.pydocstyle]

convention = "numpy"