-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathpyproject.toml
More file actions
159 lines (137 loc) · 3.76 KB
/
pyproject.toml
File metadata and controls
159 lines (137 loc) · 3.76 KB
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
[tool.poetry]
name = "deeptab"
version = "1.8.0"
description = "A python package for tabular deep learning."
authors = ["Anton Thielmann", "Manish Kumar", "Christoph Weisser"]
readme = "README.md"
packages = [{ include = "deeptab" }]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.dependencies]
python = ">=3.10,<3.14"
numpy = "^2.0.0"
pandas = "^2.0.3"
lightning = "^2.3.3"
scikit-learn = "^1.3.2"
torch = ">=2.2.2,<2.10.0"
torchmetrics = "^1.5.2"
setuptools = ">=78.1.1"
properscoring = "^0.1"
scikit-optimize = "^0.10.2"
einops = "^0.8.0"
accelerate = "^1.2.1"
scipy = "^1.15.0"
pretab = "^0.0.1"
delu = "*"
faiss-cpu = "*"
[tool.poetry.group.dev.dependencies]
pytest = "^9.0"
pytest-cov = "^4.1"
ruff = ">=0.3"
pre-commit = "^3.6"
docformatter = "^1.4"
commitizen = "^3.29.1"
twine = "^6.2.0"
pyright = "^1.1.409"
[tool.poetry.group.docs.dependencies]
setuptools = "*"
sphinx = { version = "9.1.0", python = ">=3.12" }
sphinx-autodoc-typehints = { version = ">=3.0", python = ">=3.12" }
numpydoc = ">=1.8"
nbsphinx = { version = ">=0.9.4", python = ">=3.12" }
ipython = "*"
myst-parser = { version = ">=4.0", python = ">=3.12" }
sphinx-togglebutton = "0.3.2"
sphinxawesome-theme = { version = ">=6.0", python = ">=3.12" }
readthedocs-sphinx-ext = "2.2.5"
lxml-html-clean = ">=0.4.4"
pydata-sphinx-theme = "0.15.2"
sphinx-design = "*"
sphinxcontrib-mermaid = "*"
[tool.poetry.urls]
homepage = "https://github.com/OpenTabular/deeptab"
documentation = "https://deeptab.readthedocs.io/"
repository = "https://github.com/OpenTabular/deeptab"
package = "https://pypi.org/project/deeptab/"
# test configuration
[tool.pytest.ini_options]
pythonpath = ["."]
filterwarnings = [
# Lightning trainer noise (dataloader workers, log interval, checkpoint dir, tensorboard)
"ignore::UserWarning:lightning",
# PyTorch transformer / RNN config warnings
"ignore::UserWarning:torch",
# properscoring invalid escape sequences
"ignore::DeprecationWarning:properscoring",
# faiss SwigPy builtin type warnings (emitted during import)
"ignore::DeprecationWarning:importlib",
# delu.nn.Lambda custom-function deprecation
"ignore::DeprecationWarning:delu",
]
# code quality tools
[tool.pyright]
include = ["deeptab", "tests"]
exclude = [
"**/__pycache__",
".venv",
"build",
"dist",
"docs",
"notebooks",
"examples",
]
pythonVersion = "3.10"
typeCheckingMode = "basic"
venvPath = "."
venv = ".venv"
reportMissingImports = true
reportMissingTypeStubs = false
reportPrivateImportUsage = false
reportUnknownMemberType = false
reportUnknownArgumentType = false
reportUnknownVariableType = false
# Configure code linting
[tool.ruff]
line-length = 120
target-version = "py310"
exclude = ["*.ipynb", "deeptab/arch_utils/mamba_utils.mamba_orginal.py"]
[tool.ruff.lint]
select = [
"A", # flake8-buildins
"B", # flake8-bugbear
"C4",
"E", # pycodestyle - errors
"F", # pyflakes
"I", # isort
"RUF", # ruff specific rules
"S", # flake8-bandit
"UP", # pyupgrade
"W", # pycodestyle - warnings
]
ignore = [
"B006",
"F401", # Ignore unused imports
"F841", # Ignore unused local variables
"E501", # Ignore line length
"D100", # Missing module-level docstring
"D101", # Missing class-level docstring
"D102", # Missing method-level docstring
"D103", # Missing function-level docstring
"B007",
"S307",
]
[tool.ruff.lint.per-file-ignores]
# allow asserts in test files (bandit)
"test_*" = ["S101"]
# long docstring line — suppress until refactored
"deeptab/base_models/tangos.py" = ["W505"]
[tool.ruff.lint.pycodestyle]
max-doc-length = 120
# Commitizen configuration
[tool.commitizen]
name = "cz_conventional_commits"
version_provider = "poetry"
tag_format = "v$version"
update_changelog_on_bump = true
major_version_zero = false