-
Notifications
You must be signed in to change notification settings - Fork 396
/
pyproject.toml
61 lines (53 loc) · 1.36 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
[tool.poetry]
name = "category_encoders"
version = "2.7.0"
description = "A package for encoding categorical variables for machine learning"
authors = ["PaulWestenthanner <[email protected]>"]
license = "BSD-3"
readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.10"
numpy = ">=1.14.0"
scikit-learn = ">=1.0.0, <1.6.0"
scipy = ">=1.0.0"
statsmodels = ">=0.9.0"
pandas = ">=1.0.5"
patsy = ">=0.5.1"
[tool.poetry.dev-dependencies]
numpydoc = "^1.8.0"
ruff = "^0.6.8"
sphinx = "^7.4.7"
sphinx_rtd_theme = "^2.0.0"
pytest = "^8.3.3"
pytest-subtests = "^0.14.1"
[tool.ruff]
line-length = 100
target-version = "py311"
src = ["category_encoders", "tests"]
[tool.ruff.format]
quote-style = "single"
indent-style = "space"
docstring-code-format = true
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"N", # PEP8 naming convetions
"D" # pydocstyle
]
ignore = [
"D401", # imperative mood
"N803", # allow X as a name for data
"N806", # allow X as a name for data
"N816", # allow mixed case names such as np_X_t as a name for data
"B023", # todo re-add this rule
]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"