-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
125 lines (110 loc) · 3.13 KB
/
pyproject.toml
File metadata and controls
125 lines (110 loc) · 3.13 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
[project]
name = "pytorch-tabnet2"
dynamic = ["version"]
description = "PyTorch implementation of TabNet"
readme = "README.md"
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
authors = [
{ name = "DanielAvdar", email = "66269169+DanielAvdar@users.noreply.github.com" },
{ name = "DreamQuark" },
]
requires-python = ">=3.10"
keywords = ["tabnet", "pytorch", "neural-networks"]
exclude = ["tabnet/*.ipynb"]
dependencies = [
"numpy",
"torch; python_version < '3.13'",
"torch>=2.6; python_version >= '3.13'",
"torcheval",
"activations-plus>=0.1.1",
"scikit-learn",
]
[dependency-groups]
dev = [
"jupyter",
"xgboost",
"scipy",
"matplotlib",
"wget",
"pandas",
"sphinx",
"sphinx-rtd-theme",
"recommonmark",
"db-dtypes",
"pytest",
"hypothesis",
"pre-commit",
"pytest-cov",
"mypy",
"pytest-parametrization",
"types-pytz",
"pandas-stubs",
"ruff",
"sybil[pytest]",
]
docs = [
"sphinx>=8.2.0; python_version >= '3.11'",
"sphinx>=7.0.0; python_version < '3.11'",
"sphinx-rtd-theme>=3.0.2",
"pydata-sphinx-theme",
]
[[tool.uv.index]]
name = "pytorch-cu128"
url = "https://download.pytorch.org/whl/cu128"
explicit = true
[tool.uv.sources]
torch = [
{ index = "pytorch-cu128", marker = "platform_system != 'Darwin'" },
]
[build-system]
requires = ["hatchling", "uv-dynamic-versioning"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "uv-dynamic-versioning"
[tool.pytest.ini_options]
addopts = "--ignore=tests/intg --ignore=intg --ignore=tests/docs --ignore=docs"
[tool.hatch.build.targets.sdist]
only-include = ["pytorch_tabnet", ]
source = "."
[tool.hatch.build.targets.wheel]
only-include = ["pytorch_tabnet", ]
source = "."
[tool.ruff]
line-length = 140
# In addition to the standard set of exclusions, omit all tests, plus a specific file.
extend-exclude = ["tests/intg/*", "intg/*", "docs/*", "release-script", "docs-scripts/*", "nbs/*"]
[tool.ruff.lint]
select = ["F", "I", "F", "W", "E", "A", "D", "DOC", "PLC0415"]
fixable = ["ALL"]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D", "DOC"]
"docs/*" = ["D", "DOC"]
"pytorch_tabnet/tab_network/**" = ["D", "DOC"]
"pytorch_tabnet/multiclass_utils/**" = ["D", "DOC"]
"pytorch_tabnet/data_handlers/**" = ["D", "DOC"]
"pytorch_tabnet/augmentations.py" = ["D", "DOC"]
"pytorch_tabnet/callbacks/**" = ["D", "DOC"]
"pytorch_tabnet/utils/**" = ["D", "DOC"]
[tool.mypy]
python_version = "3.11"
disallow_untyped_defs = true
check_untyped_defs = true
warn_redundant_casts = true
warn_unused_ignores = true
strict_optional = false
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "tests.*"
ignore_errors = true