Skip to content

Commit a6f6c72

Browse files
committed
pyproject(ruff[lint.flake8-builtins]) Skip types
See also: https://docs.astral.sh/ruff/settings/#lint_flake8-builtins_builtins-allowed-modules
1 parent f3a05d9 commit a6f6c72

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,9 @@ required-imports = [
215215
"from __future__ import annotations",
216216
]
217217

218+
[tool.ruff.lint.flake8-builtins]
219+
builtins-allowed-modules = ["types"]
220+
218221
[tool.ruff.lint.pydocstyle]
219222
convention = "numpy"
220223

0 commit comments

Comments
 (0)