-
Notifications
You must be signed in to change notification settings - Fork 68
/
pyproject.toml
92 lines (78 loc) · 2.46 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
[build-system]
requires = ['hatchling', 'hatch-fancy-pypi-readme>=22.5.0', 'hatch-vcs']
build-backend = 'hatchling.build'
[project]
name = 'opt_einsum'
description = 'Path optimization of einsum functions.'
authors = [
{name = 'Daniel Smith', email = 'dgasmith@icloud.com'},
]
license = 'MIT'
classifiers = [
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Topic :: Software Development :: Libraries :: Python Modules',
]
requires-python = '>=3.8'
dependencies = [
]
dynamic = ['version', 'readme']
[tool.hatch.version]
source = "vcs"
path = 'opt_einsum/_version.py'
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.hooks.vcs]
version-file = "opt_einsum/_version.py"
[tool.hatch.metadata.hooks.fancy-pypi-readme]
content-type = 'text/markdown'
# construct the PyPI readme from README.md and HISTORY.md
fragments = [
{path = "README.md"},
]
[tool.hatch.build.targets.sdist]
exclude = [
"/.github",
"/devtools",
"/docs",
"/paper",
"/scripts"
]
[tool.hatch.build.targets.wheel]
packages = ["opt_einsum"]
[tool.pytest.ini_options]
filterwarnings = [
'ignore::DeprecationWarning:tensorflow',
'ignore::DeprecationWarning:tensorboard',
]
[tool.ruff]
line-length = 120
target-version = 'py38'
[tool.ruff.lint]
extend-select = ['RUF100', 'UP', 'C', 'D', 'I', 'N', 'NPY', 'Q', 'T', 'W']
extend-ignore = ['C901', 'D101', 'D102', 'D103', 'D105', 'D107', 'D205', 'D415']
isort = { known-first-party = ['opt_einsum'] }
mccabe = { max-complexity = 14 }
pydocstyle = { convention = 'google' }
[tool.ruff.lint.per-file-ignores]
'opt_einsum/tests/*' = ['D', 'T201', 'NPY002', 'ANN001', 'ANN202']
[tool.coverage.run]
source = ['opt_einsum']
omit = ['*/tests/*', 'opt_einsum/_version.py']
branch = true
relative_files = true
[[tool.mypy.overrides]]
module = "cupy.*, jax.*, numpy.*, theano.*, tensorflow.*, torch.*"
ignore_missing_imports = true