-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
115 lines (106 loc) · 1.97 KB
/
Copy pathpyproject.toml
File metadata and controls
115 lines (106 loc) · 1.97 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
[dependency-groups]
dev = [
"numpy>=2.2.6",
"onnx>=1.18.0",
"pytest>=8.4.1",
"ruff>=0.12.0",
"torch>=1.4.0",
"setuptools>=60.0.0",
"pyright>=1.1.407",
"pytest-cov>=7.0.0",
"jax>=0.6.2",
"onnxscript>=0.5.7"
]
[project]
dependencies = [
'pydantic>=2.0;python_version<"3.14"',
'pydantic>=2.12;python_version>="3.14"',
"pydantic-settings>=2.12.0"
]
description = "An extremely lightweight and typing library for torch tensors, jax arrays, and numpy arrays. Supports runtime shape checking and data type validation."
keywords = [
"pytorch",
"numpy",
"jax",
"shape check",
"type check",
"typing",
"deep learning",
"torch"
]
license = "Apache-2.0"
license-files = ["LICENSE"]
name = "dltype"
readme = "README.md"
requires-python = ">=3.10"
version = "0.17.0"
[project.optional-dependencies]
jax = ["jax>=0.6.2"]
numpy = ["numpy"]
torch = ["torch>=1.11.0"]
[project.urls]
homepage = "https://github.com/stackav-oss/dltype"
repository = "https://github.com/stackav-oss/dltype.git"
[tool.pyright]
exclude = []
ignore = []
include = ["dltype"]
reportUnnecessaryTypeIgnoreComment = "error"
typeCheckingMode = "strict"
[tool.pytest.ini_options]
addopts = "--cov=dltype --cov-report lcov:lcov.info --cov-report html"
[tool.ruff]
indent-width = 4
line-length = 110
target-version = "py314"
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = "dynamic"
line-ending = "lf"
[tool.ruff.lint]
extend-select = [
"ANN",
"ARG",
"B",
"BLE",
"C4",
"C90",
"COM",
"D",
"E",
"EM",
"ERA",
"F",
"FA",
"FBT",
"G",
"I",
"ICN",
"INP",
"ISC",
"LOG",
"N",
"NPY",
"PERF",
"PIE",
"PLE",
"PLR",
"PT",
"PTH",
"Q",
"RET",
"RSE",
"RUF",
"SIM",
"SLF",
"T20",
"TC",
"TID",
"TRY",
"W"
]
fixable = ["ALL"]
ignore = ["COM812", "D203", "D212", "D401", "E501", "PLR6301", "PLR0917"]
select = ["E4", "E7", "E9", "F"]
[tool.ruff.lint.per-file-ignores]
"dltype/tests/*" = ["D", "ARG", "FBT", "PLR2004", "T201"]