Skip to content

Commit 858a3db

Browse files
jorenhamnstarman
authored andcommitted
🔧 ruff <3 optype
1 parent 80853fd commit 858a3db

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,13 @@ allow-dunder-method-names = [
139139
]
140140

141141
[tool.ruff.lint.flake8-import-conventions]
142-
banned-from = ["array_api_typing"]
142+
banned-from = ["array_api_typing", "optype", "optype.numpy", "optype.numpy.compat"]
143143

144144
[tool.ruff.lint.flake8-import-conventions.extend-aliases]
145145
array_api_typing = "xpt"
146+
optype = "op"
147+
"optype.numpy" = "onp"
148+
"optype.numpy.compat" = "npc"
146149

147150
[tool.ruff.lint.isort]
148151
combine-as-imports = true

0 commit comments

Comments
 (0)