-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
59 lines (49 loc) · 1.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
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "lightning-cv"
version = "1.0.0"
authors = [{ name = "Cody Martin", email = "[email protected]" }]
description = "Cross validation using Lightning Fabric"
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.9"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
]
dependencies = [
"torch>=2",
"lightning>=2",
"boltons",
"attrs>=24.2",
"cattrs>=24.1",
]
[project.optional-dependencies]
tune = ["optuna>=3.1", 'tomli; python_version <"3.11"']
test = ["pytest>=8.3", "pytest-cov", "scikit-learn"]
build = ["ruff", "mypy", "isort", "covdefaults"]
dev = ["lightning-cv[build]", "lightning-cv[test]"]
[project.urls]
"Homepage" = "https://github.com/cody-mar10/lightning-crossval"
"Bug Tracker" = "https://github.com/cody-mar10/lightning-crossval/issues"
[tool.ruff]
src = ["src"]
line-length = 90
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"] # allow unused imports in `__init__.py`
[tool.coverage.run]
plugins = ["covdefaults"]
[tool.coverage.report]
fail_under = 80
exclude_also = ["def __repr__"]
[tool.setuptools.package-data]
lightning_cv = ["py.typed"]
[tool.pytest.ini_options]
testpaths = ["tests/unit", "tests/integration"]
filterwarnings = [
# ignore lightning warnings since it is a 3rd party lib
"ignore:.*pkg_resources.declare_namespace",
"ignore:.*pkg_resources is deprecated:DeprecationWarning",
]