-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
48 lines (39 loc) · 1.2 KB
/
Copy pathpyproject.toml
File metadata and controls
48 lines (39 loc) · 1.2 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
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "tensorless-pytorch"
version = "1.0.0"
description = "Automatic PyTorch training with portable models and minimal setup."
readme = "README.md"
requires-python = ">=3.9"
license = { text = "MIT" }
authors = [{ name = "Tensorless PyTorch Contributors" }]
dependencies = [
"torch>=2.0",
]
[project.optional-dependencies]
dev = ["pytest>=7.0", "pytest-cov>=4.0", "ruff>=0.6", "build>=1.0"]
yaml = ["pyyaml"]
[project.scripts]
tensorless = "tensorless.cli.main:main"
[tool.setuptools.packages.find]
include = ["tensorless*"]
[tool.setuptools.package-data]
tensorless = ["data/*.txt"]
[tool.ruff]
line-length = 110
target-version = "py39"
[tool.ruff.lint]
# Keep this intentionally narrow: the goal is to catch real bugs (unused
# imports/variables, undefined names, obvious logic slips) in CI without
# forcing a wholesale style rewrite of the existing codebase.
select = ["E", "F", "W", "I"]
ignore = [
"E501", # line length is handled by `line-length` above, not as a hard error
]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.coverage.run]
source = ["tensorless"]
omit = ["tensorless/cli/*"]