Skip to content

Commit 67fabe1

Browse files
committed
🔧 ruff <3 optype
1 parent 6b6cfe1 commit 67fabe1

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
@@ -147,10 +147,13 @@ version_tuple = {version_tuple!r}
147147
"tests/*.py" = ["ANN201", "D1", "S101"]
148148

149149
[tool.ruff.lint.flake8-import-conventions]
150-
banned-from = ["array_api_typing"]
150+
banned-from = ["array_api_typing", "optype", "optype.numpy", "optype.numpy.compat"]
151151

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

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

0 commit comments

Comments
 (0)