-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
94 lines (85 loc) 路 1.76 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "slim-trees"
description = "A python package for efficient pickling of ML models."
version = "0.2.10"
readme = "README.md"
license = {file = "LICENSE"}
requires-python = ">=3.8"
authors = [
{ name = "Pavel Zwerschke", email = "pavel.zwerschke@quantco.com" },
]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"numpy",
]
[project.optional-dependencies]
lightgbm = [
"lightgbm >=3.2,<4.4",
]
scikit-learn = [
"scikit-learn >=1.1.0,<1.6",
]
[project.urls]
Homepage = "https://github.com/quantco/slim-trees"
[tool.hatch.build.targets.sdist]
include = [
"/slim_trees",
]
[tool.ruff]
line-length = 88
target-version = "py38"
[tool.ruff.lint]
select = [
# pyflakes
"F",
# pycodestyle
"E", "W",
# flake8-builtins
"A",
# flake8-bugbear
"B",
# flake8-comprehensions
"C4",
# flake8-simplify
"SIM",
# flake8-unused-arguments
"ARG",
# pylint
"PL",
# tidy
"TID",
# isort
"I",
# pep8-naming
"N",
# pyupgrade
"UP"
]
ignore = [
# variable in function should be lowercase
"N806",
# may cause conflicts with ruff formatter
"E501",
"W191",
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.mypy]
python_version = "3.8"
no_implicit_optional = true
check_untyped_defs = true
[[tool.mypy.overrides]]
# https://github.com/scikit-learn/scikit-learn/issues/16705
module = ["sklearn.*"]
ignore_missing_imports = true