Skip to content

Commit b40123d

Browse files
committed
[skip ci] Added T201 to Ruff (no print statements)
1 parent 8571492 commit b40123d

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,14 @@ priority = "primary"
8989

9090

9191
[tool.ruff]
92-
lint.extend-select = ["C901"]
92+
lint.extend-select = ["C901", "T201"]
9393
lint.mccabe.max-complexity = 11
9494

95+
[tool.ruff.lint.per-file-ignores]
96+
"tests/*" = ["T201"]
97+
"examples/*" = ["T201"]
98+
"notebooks/*" = ["T201"]
99+
95100
[tool.pytest.ini_options]
96101
addopts = "-p no:warnings --cov=simvue -n auto"
97102
testpaths = [

simvue/factory/proxy/remote.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,6 @@ def list_alerts(self) -> list[dict[str, typing.Any]]:
370370
if not (response_data := response.json()) or (
371371
(data := response_data.get("data")) is None
372372
):
373-
print(response_data)
374373
self._error(
375374
"Expected key 'alerts' in response from server during alert retrieval"
376375
)

simvue/metadata.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,3 @@ def git_info(repository: str) -> dict[str, typing.Any]:
6565
"git.url": git_repo.remote().url,
6666
"git.dirty": dirty,
6767
}
68-
69-
70-
if __name__ in "__main__":
71-
import os.path
72-
import json
73-
74-
print(json.dumps(git_info(os.path.dirname(__file__)), indent=2))

0 commit comments

Comments
 (0)