-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
121 lines (106 loc) · 2.88 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
[tool.poetry]
name = "tabular-trees"
version = "0.3.0"
description = "Package to assist with analysis of tree-based models."
authors = ["Richard Angell <[email protected]>"]
license = "BSD-3-Clause"
readme = "README.md"
packages = [{include = "tabular_trees", from = "src"}]
homepage = "https://github.com/richardangell/tabular-trees"
repository = "https://github.com/richardangell/tabular-trees"
documentation = "https://tabular-trees.readthedocs.io/en/latest/"
[tool.poetry.dependencies]
python = "^3.9"
tqdm = "4.66.3"
pandas = "^2.2.0"
lightgbm = {version = "^4.5.0", optional = true}
xgboost = {version = "^2.1.0", optional = true}
scikit-learn = {version = "^1.5.0", optional = true}
typing-extensions = "^4.12.2"
[tool.poetry.extras]
sklearn = ["scikit-learn"]
lightgbm = ["lightgbm"]
xgboost = ["xgboost"]
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
pre-commit = "3.1.0"
pytest = "7.2.1"
pytest-mock = "3.10.0"
pytest-cov = "4.0.0"
tox = "4.4.6"
ipykernel = "^6.21.2"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
sphinx = "6.1.3"
sphinx-rtd-theme = "1.2.0"
numpydoc = "1.5.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 88
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
# flake8-bandit
"S",
# pep8-naming
"N",
# flake8-comprehensions
"C4",
# pydocstyle
"D",
]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.extend-per-file-ignores]
"tests/*.py" = [
"S101", # Use of assert
"N999", # Invalid module name
"D100", # Missing docstring in public module
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
"D205", # 1 blank line required between summary line and description
]
"*/__init__.py" = [
"F401", # Unused import,
"D104", # Missing docstring in public package
]
[tool.docformatter]
wrap-summaries = 88
wrap-descriptions = 88
blank = true
[tool.pytest.ini_options]
filterwarnings = [
"ignore:This algorithm has very long runtime. It will produce the same results as treeSHAP but will take much longer to run.",
"ignore:XGBoostDumpParser class is depreceated, Booster.trees_to_dataframe is available instead",
"ignore:EditableBooster is experimental and has not been tested with every option that is available in LightGBM.",
]
[tool.mypy]
python_version = "3.11"
exclude = "tests"
disallow_untyped_defs = true
disallow_any_unimported = true
no_implicit_optional = true
check_untyped_defs = true
warn_return_any = true
warn_unused_ignores = true
warn_unused_configs = true
show_error_codes = true
[[tool.mypy.overrides]]
module = "tests.*"
ignore_errors = true