Skip to content

Commit eeb588d

Browse files
jorenhamnstarman
authored andcommitted
🔧 ruff <3 optype
1 parent 839beed commit eeb588d

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
@@ -148,10 +148,13 @@ version_tuple = {version_tuple!r}
148148
]
149149

150150
[tool.ruff.lint.flake8-import-conventions]
151-
banned-from = ["array_api_typing"]
151+
banned-from = ["array_api_typing", "optype", "optype.numpy", "optype.numpy.compat"]
152152

153153
[tool.ruff.lint.flake8-import-conventions.extend-aliases]
154154
array_api_typing = "xpt"
155+
optype = "op"
156+
"optype.numpy" = "onp"
157+
"optype.numpy.compat" = "npc"
155158

156159
[tool.ruff.lint.isort]
157160
combine-as-imports = true

0 commit comments

Comments
 (0)