-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
48 lines (45 loc) · 905 Bytes
/
pyproject.toml
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
[tool.ruff.lint]
select = [
# flake8-bugbear
"B",
# flake8-comprehensions
"C4",
# pycodestyle
"E",
# pyflakes
"F",
# isort
"I",
# NumPy-specific rules
"NPY",
# pylint
"PL",
# flake8-return: unnecessary assignment before return
"RET504",
# flake8-simplify: use dict.get() instead of an if-else block
"SIM401",
]
[tool.ruff.lint.isort]
# prevent ruff from thinking that 'lightgbm.dask' imports should
# come after all others
known-third-party = [
"dask",
"dask_cloudprovider",
"lightgbm",
"pandas",
"scipy",
"sklearn",
]
[tool.ruff.lint.per-file-ignores]
"*.ipynb" = [
# (pylint) Unnecessary list() call
"C408",
# (pylint) too many arguments in function definition
"PLR0913",
# (pylint) Magic value used in comparison
"PLR2004",
]
"jupyter_notebook_config.py" = [
# (flake8) undefined name
"F821",
]