-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
117 lines (105 loc) · 2.55 KB
/
pyproject.toml
File metadata and controls
117 lines (105 loc) · 2.55 KB
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
111
112
113
114
115
116
117
[build-system]
requires = ["scikit-build-core>=0.3.3", "nanobind>=1.3.2"]
build-backend = "scikit_build_core.build"
[project]
name = "onnx-light"
version = "0.1.0"
description = "onnx without protobuf"
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"]
requires-python = ">=3.10"
dependencies = [
"numpy>=2.1",
"ml-dtypes",
]
[project.optional-dependencies]
dev = [
"black",
"matplotlib",
"onnx>=1.17",
"onnxruntime",
"pandas",
"pytest>=7",
"pytest-coverage",
"pytest-subtests",
"ruff",
]
docs = [
"black",
"breathe",
"matplotlib",
"onnx>=1.17",
"onnxruntime",
"pandas",
"pydata-sphinx-theme",
"sphinx>=7",
"sphinx-copybutton",
"sphinx-gallery",
"sphinx-issues",
"sphinx-runpython",
"sphinxcontrib-mermaid",
]
[tool.scikit-build]
wheel.packages = ["onnx_light"]
[tool.pytest.ini_options]
testpaths = ["unittests"]
[tool.black]
line-length = 98
extend-exclude = '''.*clones*'''
skip-magic-trailing-comma = true
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".eggs",
".git",
"build",
"dist",
]
line-length = 98
[tool.ruff.lint]
# see https://docs.astral.sh/ruff/rules/
fixable = ["UP006", "UP035"]
unfixable = ["E731", "F401", "I001"]
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
#"D", # pydocstyle
"E", # pycodestyle
"F", # Pyflakes
"G", # flake8-logging-format
#"I", # isort
"ISC", # flake8-implicit-str-concat
"LOG", # flake8-logging
#"N", # pep8-naming
#"NPY", # modern numpy
#"PERF", # Perflint
"PIE", # flake8-pie
"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
]
[tool.ruff.lint.extend-per-file-ignores]
"**" = [
"B028", "B905",
"C401", "C408", "C413",
"PYI041",
"RUF002", "RUF003", "RUF010", "RUF012", "RUF100",
"SIM102", "SIM103", "SIM108", "SIM114", "SIM300", "SIM910",
"UP006", "UP007", "UP015", "UP027", "UP031", "UP032", "UP034", "UP035", "UP037", "UP045",
]
"*/__init__.py" = ["F401"]
"docs/**" = ["B018", "E402", "RUF001", "SIM105"]
"unittests/**" = ["B023", "B904", "E731", "SIM300"]
[tool.mypy]
ignore_missing_imports = true
[tool.pyrefly]
project-includes = ["onnx_light/**/*.py"]
ignore-missing-imports = ["pandas", "matplotlib", "matplotlib.axes", "matplotlib.pyplot", "matplotlib.patches"]