-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
92 lines (86 loc) · 2.29 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 = ["setuptools>=61.0.0"]
build-backend = "setuptools.build_meta"
[project]
name = "onnx-safetensors"
dynamic = ["version"]
description = "Use safetensors with ONNX"
keywords = []
authors = [
{ name = "Justin Chu", email = "[email protected]" },
]
readme = "README.md"
requires-python = ">=3.9"
license = { file = "LICENSE" }
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Operating System :: POSIX",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3.8",
"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",
"License :: OSI Approved :: MIT License",
]
dependencies = [
"numpy",
"onnx>=1.16",
"safetensors",
"onnxscript>=0.2.2",
]
[project.urls]
Documentation = "https://github.com/justinchuby/onnx-safetensors#readme"
Issues = "https://github.com/justinchuby/onnx-safetensors/issues"
Source = "https://github.com/justinchuby/onnx-safetensors"
[tool.setuptools.dynamic]
version = {attr = "onnx_safetensors.__version__"}
[tool.ruff]
target-version = "py39"
lint.select = [
"A",
"ARG",
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"D", # pydocstyle
"E", # pycodestyle
"F", # Pyflakes
"G", # flake8-logging-format
"I", # isort
"ICN",
"ISC", # flake8-implicit-str-concat
"LOG", # flake8-logging
"N", # pep8-naming
"NPY", # modern numpy
"PERF", # Perflint
"PIE", # flake8-pie
"PLC",
"PLE",
"PLR",
"PLW",
"PYI", # flake8-pyi
"RUF", # Ruff-specific rules
"SIM", # flake8-simplify
"SLOT", # flake8-slot
"T10", # flake8-debugger
"TID", # Disallow relative imports
"TRY", # flake8-try-except-raise
"UP", # pyupgrade
"W", # pycodestyle
"YTT", # flake8-2020
]
lint.ignore = [
"E501", # Line length. Not enforced.
"PLR0913", # Too many arguments
"SIM108",
"TRY003", # Long error messages
]
[tool.ruff.lint.flake8-tidy-imports]
# Disallow all relative imports.
ban-relative-imports = "all"
[tool.ruff.lint.pydocstyle]
convention = "google"