Skip to content

Commit

Permalink
disable T201 ruff rule (print statements) for build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
DetachHead committed Nov 19, 2024
1 parent dff7abe commit 9b336fa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,13 @@ ignore-overlong-task-comments = true
[tool.ruff.lint.per-file-ignores]
"*.pyi" = ["A001", "A002", "N"] # we don't control names in 3rd party modules
"{tests,based_build}/**/*.py" = [
"S", # none of these security focused rules are relevant for tests/build scripts
"S", # none of these security focused rules are relevant for tests/build scripts
"T201",
]
"based_build/**/*.py" = [
"T201", # print
]

[tool.ruff.lint.isort]
combine-as-imports = true
required-imports = ["from __future__ import annotations"]
Expand Down

0 comments on commit 9b336fa

Please sign in to comment.