-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
128 lines (115 loc) · 2.59 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
125
126
127
128
[project]
name = "foldedtensor"
description = "PyTorch extension for handling deeply nested sequences of variable length"
authors = [
{ name = "Perceval Wajsbürt", email = "[email protected]" },
]
license = { file = "LICENSE" }
readme = "README.md"
urls.homepage = "https://github.com/aphp/foldedtensor/"
urls.repository = "https://github.com/aphp/foldedtensor/"
dynamic = ["version"]
requires-python = ">3.7.1,<4.0"
dependencies = [
"torch>1.0.0",
"numpy<2.0.0",
]
[project.optional-dependencies]
dev = [
"black==22.6.0",
"pre-commit>=2.18",
"pytest==7.1.1",
"pytest-cov==3.0.0",
]
[tool.setuptools.dynamic]
version = { attr = "foldedtensor.__version__" }
[tool.setuptools.packages.find]
where = ["."]
[tool.interrogate]
ignore-init-method = true
ignore-init-module = true
ignore-magic = false
ignore-semiprivate = false
ignore-private = false
ignore-property-decorators = false
ignore-module = true
ignore-nested-functions = false
ignore-nested-classes = true
ignore-setters = false
fail-under = 10
exclude = ["docs", "build", "tests"]
verbose = 0
quiet = false
whitelist-regex = []
color = true
omit-covered-files = false
[tool.pytest.ini_options]
testpaths = [
"tests",
]
[tool.coverage.run]
concurrency = ["multiprocessing"]
parallel = true
include = ['foldedtensor/*']
[tool.coverage.report]
include = ['foldedtensor/*']
precision = 2
omit = [
"tests/*",
]
exclude_lines = [
"def __repr__",
"if __name__ == .__main__.:",
"@overload",
"pragma: no cover",
"raise .*Error",
"raise .*Exception",
"warn\\(",
"if __name__ == .__main__.:",
"if repr_id in exclude:",
"if TYPE_CHECKING:",
"if typing.TYPE_CHECKING:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
[build-system]
requires = [
"setuptools",
"pybind11>=2.10.4",
"oldest-supported-numpy"
]
build-backend = "setuptools.build_meta"
[tool.cibuildwheel]
skip = [
"*p36-*", # Skip Python 3.6
"pp*", # Skip PyPy
"*-win32", # Skip 32-bit Windows
"*-manylinux_i686", # Skip 32-bit Linux
"*-win_arm64", # Skip experimental Windows on ARM
"*-musllinux*", # Skip slow Linux
"*-manylinux_aarch64", # Skip slow Linux
"*-manylinux_ppc64le", # Skip slow Linux
"*-manylinux_s390x", # Skip slow Linux
]
[tool.ruff]
fix = true
exclude = [
".git",
"__pycache__",
".mypy_cache",
".pytest_cache",
".venv",
"build",
]
ignore = []
line-length = 88
select = [
"E",
"F",
"W",
"I001"
]
fixable = ["E", "F", "W", "I"]
[tool.ruff.isort]
known-first-party = ["foldedtensor"]
known-third-party = ["build"]