-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathpyproject.toml
99 lines (84 loc) · 2.16 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
[tool.poetry]
name = "mambular"
version = "1.1.0"
description = "A python package for tabular deep learning with mamba blocks."
authors = ["Anton Thielmann", "Manish Kumar", "Christoph Weisser"]
readme = "README.md"
packages = [{ include = "mambular" }]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.dependencies]
python = ">=3.10, <=3.12"
numpy = "<=1.26.4"
pandas = "^2.0.3"
lightning = "^2.3.3"
scikit-learn = "^1.3.2"
torch = "^2.5.1"
torchmetrics = "^1.5.2"
setuptools = "^75.3.0"
properscoring = "^0.1"
scikit-optimize = "^0.10.2"
einops = "^0.8.0"
accelerate = "^1.2.1"
scipy = "^1.15.0"
[tool.poetry.group.dev.dependencies]
pytest = "^8.1"
pytest-cov = "^4.1"
ruff = ">=0.3"
pre-commit = "^3.6"
docformatter = "^1.4"
[tool.poetry.urls]
homepage = "https://github.com/basf/mamba-tabular"
documentation = "https://mambular.readthedocs.io/en/"
repository = "https://github.com/basf/mamba-tabular"
package = "https://pypi.org/project/mambular/"
# code quality tools
[tool.pyright]
ignore = []
reportMissingImports = true
reportMissingTypeStubs = false
pythonVersion = "3.10"
venvPath = "."
venv = ".venv"
# Configure code linting
[tool.ruff]
line-length = 120
target-version = "py310"
exclude = ["*.ipynb", "mambular/arch_utils/mamba_utils.mamba_orginal.py"]
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]
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
]
[tool.ruff.lint.per-file-ignores]
# allow asserts in test files (bandit)
"test_*" = ["S101"]
[tool.ruff.lint.pycodestyle]
max-doc-length = 120
[tool.docformatter]
recursive = true
in-place = true
wrap-summaries = 120
wrap-descriptions = 120
exclude = ["build", "dist", ".venv", ".git"]