Skip to content

Commit a160bec

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 40d4358 commit a160bec

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
@@ -213,6 +213,12 @@ extend-safe-fixes = [
213213
]
214214
pyupgrade.keep-runtime-typing = false
215215

216+
[tool.ruff.lint.flake8-builtins]
217+
builtins-allowed-modules = [
218+
"dataclasses",
219+
"types",
220+
]
221+
216222
[tool.ruff.lint.pydocstyle]
217223
convention = "numpy"
218224

0 commit comments

Comments
 (0)