-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
110 lines (93 loc) · 2.56 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
[tool.poetry]
name = "tensora"
version = "0.3.0"
description = "Library for dense and sparse tensors built on the tensor algebra compiler"
authors = ["David Hagen <[email protected]>"]
license = "MIT"
readme = "README.md"
documentation = "https://tensora.drhagen.com"
repository = "https://github.com/drhagen/tensora"
keywords = ["tensor", "sparse", "matrix", "array"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Python Modules",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
]
[tool.poetry.dependencies]
python = "^3.10"
returns = "^0.20|^0.21|^0.22"
cffi = "^1.16"
# setuptools is required for cffi compilation on Python 3.12 and up
# https://cffi.readthedocs.io/en/latest/whatsnew.html#v1-16-0rc1
setuptools = { version = "^69", python = ">=3.12", optional = true }
llvmlite = "^0.42"
parsita = "^2.0"
typer = "^0.9"
tensora-taco = { version = "^0.1.2", optional = true }
numpy = { version = "^1.24", optional = true }
scipy = { version = "^1.7", optional = true }
[tool.poetry.dev-dependencies]
nox_poetry = "^1.0.3"
# Test
pytest = "^7" # Upgrading to pytest 8 breaks hypofuzz
pytest-cov = "*"
# Fuzzing
hypothesis = "^6"
hypofuzz = "^24"
# Lint
ruff = "^0.6"
# Docs
mkdocs-material = "^9"
[tool.poetry.scripts]
tensora = "tensora.cli:app"
[tool.poetry.extras]
taco = ["tensora-taco", "setuptools"]
cffi = ["setuptools"]
numpy = ["numpy"]
scipy = ["scipy"]
[tool.coverage.run]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"pass",
"raise NotImplementedError",
"def __str__",
"def __repr__",
]
[tool.coverage.paths]
source = [
"src/",
".nox/test*/lib/python*/site-packages/",
".nox/test*/Lib/site-packages/",
"*/tensora/src/",
]
[tool.ruff]
src = ["src"]
line-length = 99
[tool.ruff.lint]
extend-select = [
"I", # isort
"N", # pep8-naming
"RUF", # ruff
"B", # flake8-bugbear
"N", # flake8-broken-line
"C4", # flake8-comprehensions
"PIE", # flake8-pie
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"ERA", # flake8-eradicate
]
[tool.ruff.lint.flake8-bugbear]
extend-immutable-calls = ["hypothesis.strategies.integers"]
[tool.ruff.lint.per-file-ignores]
# Allow glob imports and uppercase identifiers in tests
"tests*/*" = ["F403", "F405", "N802", "N806"]
# F401: Allow unused imports in __init__.py
"__init__.py" = ["F401"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"