Skip to content

Commit 97b146a

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

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,12 @@ required-imports = [
189189
"from __future__ import annotations",
190190
]
191191

192+
[tool.ruff.lint.flake8-builtins]
193+
builtins-allowed-modules = [
194+
"dataclasses",
195+
"types"
196+
]
197+
192198
[tool.ruff.lint.pydocstyle]
193199
convention = "numpy"
194200

0 commit comments

Comments
 (0)