-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
90 lines (75 loc) · 2.17 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
[build-system]
requires = ["setuptools", "setuptools-scm"]
[tool.setuptools_scm]
version_scheme = "post-release"
[project]
name = "ndonnx"
description = "ONNX backed array library compliant with Array API standard."
readme = "README.md"
dynamic = ["version"]
authors = [
{ name = "Aditya Goel", email = "agoel4512@gmail.com" },
{ name = "Christian Bourjau", email = "christian.bourjau@quantco.com" },
]
classifiers = [
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
requires-python = ">=3.10"
dependencies = ["numpy", "spox>=0.10", "typing_extensions"]
keywords = ["numpy", "onnx", "array-api"]
[project.urls]
repository = "https://github.com/quantco/ndonnx"
[tool.setuptools.packages.find]
include = ["ndonnx"]
namespaces = false
[tool.setuptools.package-data]
"ndonnx" = ["py.typed"]
[project.scripts]
[tool.docformatter]
black = true # only sets the style options to the default values of black
[tool.ruff]
line-length = 88
[tool.ruff.lint]
ignore = [
"N803", # https://docs.astral.sh/ruff/rules/invalid-argument-name
"N806", # https://docs.astral.sh/ruff/rules/non-lowercase-variable-in-function
"E501", # https://docs.astral.sh/ruff/faq/#is-the-ruff-linter-compatible-with-black
"UP038", # https://github.com/astral-sh/ruff/issues/7871
"UP007",
]
select = [
# pyflakes
"F",
# pycodestyle
"E",
"W",
# isort
"I",
# pep8-naming
"N",
# pyupgrade
"UP",
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["I"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.mypy]
python_version = '3.10'
no_implicit_optional = true
check_untyped_defs = true
exclude = ["api-coverage-tests", "tests"]
[[tool.mypy.overrides]]
module = ["onnxruntime"]
ignore_missing_imports = true
[tool.pytest.ini_options]
addopts = "--ignore=api-coverage-tests"
filterwarnings = ["ignore:.*google.protobuf.pyext.*:DeprecationWarning"]
[tool.typos.default]
extend-ignore-identifiers-re = ["scatter_nd", "arange"]