-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
94 lines (86 loc) · 2.07 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
[build-system]
requires = ["setuptools>=61.0.0"]
build-backend = "setuptools.build_meta"
[project]
name = "torch-onnx"
version = "0.1.25"
description = "Experimental tools for converting PyTorch models to ONNX"
authors = [{ name = "Justin Chu", email = "justinchu@microsoft.com" }]
readme = "README.md"
requires-python = ">=3.8"
license = {text = "MIT License"}
keywords = ["onnx", "pytorch", "converter", "convertion", "exporter"]
classifiers = [
"Development Status :: 3 - Alpha",
"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",
"License :: OSI Approved :: MIT License",
]
dependencies = [
"torch>=2.1",
"onnxscript>=0.1.0.dev20240831",
"onnx>=1.16",
"typing-extensions",
"packaging"
]
[project.urls]
Repository = "https://github.com/justinchuby/torch-onnx"
[project.scripts]
torch-onnx = "torch_onnx.bin.convert:main"
[tool.pytest.ini_options]
filterwarnings = ["ignore::DeprecationWarning"]
addopts = "--tb=short --color=yes"
[tool.ruff]
target-version = "py38"
[tool.ruff.lint]
select = [
"B",
"B904", # Re-raised error without specifying the cause via the from keyword
"E",
"EXE",
"F",
"G",
"I",
"LOG",
"NPY",
"PERF",
"PGH004",
"PIE794",
"PIE800",
"PIE804",
"PIE807",
"PIE810",
"PLC",
"PLE",
"PLR0133", # constant comparison
"PLR0206", # property with params
"PLR1722", # use sys exit
"PLW",
"PYI",
"RSE",
"RUF",
"SIM",
"TRY002",
"TRY302",
"TRY401",
"UP",
"W",
]
ignore = [
"E501", # line too long
"PYI041",
"NPY002",
"SIM103",
]
[tool.ruff.lint.per-file-ignores]
"tests/onnx_test_common.py" = ["UP006", "UP007"]
"tests/pytorch_test.py" = ["UP006", "UP007"]
"tests/pytorch_test_common.py" = ["UP006", "UP007"]