-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
124 lines (108 loc) · 2.5 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
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
authors = [{ name = "Paul Rademacher", email = "[email protected]" }]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = [
"numpy>=1.22.3",
"scipy>=1.8.0",
"matplotlib>=3.5.2",
"pandas>=1.4.2",
"tabulate>=0.8.9",
"tqdm>=4.64.0",
"more-itertools>=8.13.0",
"torch>=1.11.0",
"pytorch-lightning>=1.6.3",
"scikit-learn",
]
description = "Statistical learning with a Bayesian focus"
name = "stats-learn"
readme = "README.md"
requires-python = ">=3.11"
version = "0.1.2a0"
[project.optional-dependencies]
dev = [
"ipython",
"black",
"ruff",
"mypy",
"pre-commit",
"hatch",
"pytest",
"pytest-cov",
"pytest-xdist",
]
docs = ["Sphinx", "furo"]
extras = [
"ipykernel",
"tensorboard",
"torch-tb-profiler",
"PyQt6",
"PyYAML",
"tqdm",
]
[project.urls]
"Bug Tracker" = "https://github.com/rademacher-p/stats-learn/issues"
"Homepage" = "https://github.com/rademacher-p/stats-learn"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build]
packages = ["src/stats_learn"]
[tool.hatch.envs.default]
python = "3.11"
pre-install-commands = ["pip install --upgrade pip"]
[tool.hatch.envs.dev]
features = ["dev", "extras"]
post-install-commands = [
"pre-commit install",
"mypy --install-types --non-interactive . || true",
]
[tool.hatch.envs.docs]
features = ["docs"]
[tool.hatch.envs.docs.scripts]
build = "sphinx-build -M html docs/source/ docs/build/"
[tool.black]
extend-exclude = "src/_deprecated"
[tool.ruff]
src = ["src"]
select = [
"F", # pyflakes
"E", # pycodestyle
"W", # pycodestyle
"C90", # mccabe
"I", # isort
"N", # pep8-naming
"D", # pydocstyle
"B", # bugbear
"UP", # pyupgrade
]
ignore = [
"D1", # missing docstrings
"B905", # zip w/o explicit `strict=`
"C901", # high McCabe complexity # TODO
]
extend-exclude = ["src/_deprecated"]
[tool.ruff.pydocstyle]
convention = "numpy"
[tool.mypy]
exclude = ["src/_deprecated"]
plugins = "numpy.typing.mypy_plugin"
[[tool.mypy.overrides]]
module = ["stats_learn.*", "scipy.*", "sklearn.*"]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests/"]
addopts = [
"--import-mode=importlib",
"--cov=src/stats_learn",
"--cov-report=xml:tests/coverage.xml",
"--numprocesses=auto",
]
filterwarnings = ["ignore::DeprecationWarning"]
[tool.coverage.run]
data_file = "tests/.coverage"