-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpyproject.toml
More file actions
158 lines (143 loc) · 3.91 KB
/
Copy pathpyproject.toml
File metadata and controls
158 lines (143 loc) · 3.91 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
[build-system]
requires = ["uv_build>=0.7.19,<0.8.0"]
build-backend = "uv_build"
[project]
name = "lighter"
version = "0.1.0"
description = "YAML-based automated rapid prototyping framework for deep learning experiments"
authors = [
{ name = "Ibrahim Hadzic", email = "ibrahimhadzic45@gmail.com" },
{ name = "Suraj Pai", email = "b.pai@maastrichtuniversity.nl" },
{ name = "Keno Bressem", email = "kbressem@bwh.harvard.edu" },
]
requires-python = ">=3.10"
readme = "README.md"
license = "MIT"
keywords = []
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"torch>=2.1.2",
"pandas>=1.5.3",
"numpy<2.0.0",
"pytorch-lightning>=2.1.3",
"loguru>=0.6.0",
"torchmetrics>=1.2.0",
"tensorboard>=2.11.2",
"requests>=2.31.0",
"sparkwheel>=0.0.10",
"rich>=13.7.0",
"torchvision>=0.20.0",
"cloudpickle>=3.0.0",
]
[project.urls]
Homepage = "https://github.com/lighter/lighter"
Repository = "https://github.com/lighter/lighter"
[project.scripts]
lighter = "lighter.engine.runner:cli"
[dependency-groups]
dev = [
{ include-group = "doc" },
{ include-group = "maintain" },
{ include-group = "quality" },
{ include-group = "types" },
{ include-group = "test" },
"pre-commit-uv==4.1.4",
]
doc = [
"mkdocs-autorefs>=1.4.1",
"mkdocs-gen-files>=0.5.0",
"mkdocs-literate-nav>=0.6.2",
"mkdocs-material>=9.6.12",
"mkdocs-section-index>=0.3.10",
"mkdocstrings[python]>=0.29.1",
]
maintain = ["bump-my-version==0.30.1"]
quality = ["ruff>=0.5.0"]
types = [
"mypy>=1.14.1",
"typing-extensions>=4.4.0",
"types-PyYAML>=6.0.0",
]
test = [
"pytest>=7.4.0",
"pytest-html>=3.2.0",
"pytest-cov>=4.0.0",
"coverage>=7.0.5",
"pytest-metadata>=3.1.1",
"pytest-github-actions-annotate-failures>=0.2.0",
]
[tool.mypy]
# https://mypy.readthedocs.io/en/latest/config_file.html#using-a-pyproject-toml-file
python_version = "3.10"
pretty = true
show_traceback = true
allow_redefinition = false
check_untyped_defs = true
disallow_incomplete_defs = true
ignore_missing_imports = true
implicit_reexport = false
no_implicit_optional = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
strict_equality = true
strict_optional = true
warn_no_return = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true
[tool.pytest.ini_options]
# https://docs.pytest.org/en/6.2.x/customize.html#pyproject-toml
# Directories that are not visited by pytest collector:
testpaths = ["tests"]
doctest_optionflags = ["NUMBER", "NORMALIZE_WHITESPACE", "IGNORE_EXCEPTION_DETAIL"]
# Extra options:
addopts = [
"--strict-markers",
"--tb=short",
"--doctest-modules",
"--doctest-continue-on-failure",
]
# Markers to categorize tests
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"serial",
]
[tool.coverage.run]
source_pkgs = ["lighter"]
branch = true
[tool.coverage.report]
fail_under = 95
show_missing = true
[tool.ruff]
# https://docs.astral.sh/ruff/configuration/
line-length = 127
target-version = "py310"
[tool.ruff.lint]
preview = true
select = ["B", "E", "F", "I", "W"]
ignore = ["E203", "E501", "N813"]
[tool.bumpversion]
current_version = "0.1.0"
commit = true
tag = true
[[tool.bumpversion.files]]
filename = "src/lighter/__init__.py"
search = "__version__ = \"{current_version}\""
replace = "__version__ = \"{new_version}\""
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'