Skip to content

Commit 8808e91

Browse files
Merge remote-tracking branch 'origin/master' into ci/ruff-pytest-raises-too-broad
# Conflicts: # pyproject.toml
2 parents 30362cd + 41b0294 commit 8808e91

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎pyproject.toml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ select = [
301301
"I",
302302
# Note: B and N rules are NOT enabled by default in flake8
303303
# They were only active through the plugins, which may not have been fully enabled
304+
"T20", # print() and pprint() calls
304305
"PT011", # pytest.raises() too broad
305306
]
306307

@@ -318,6 +319,10 @@ ignore = [
318319
"E721", # Use isinstance instead of type() == - existing pattern in this codebase
319320
]
320321

322+
[tool.ruff.lint.per-file-ignores]
323+
"scripts/**" = ["T20"]
324+
"tests/**" = ["T20"]
325+
321326
[tool.ruff.format]
322327
# ruff format already excludes the same files as specified in extend-exclude
323328
# Ensure Python 3.7 compatibility - avoid using Python 3.9+ syntax features

0 commit comments

Comments
 (0)