Skip to content

[skip ci] Added T201 to Ruff (no print statements) #395

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,14 @@ priority = "primary"


[tool.ruff]
lint.extend-select = ["C901"]
lint.extend-select = ["C901", "T201"]
lint.mccabe.max-complexity = 11

[tool.ruff.lint.per-file-ignores]
"tests/*" = ["T201"]
"examples/*" = ["T201"]
"notebooks/*" = ["T201"]

[tool.pytest.ini_options]
addopts = "-p no:warnings --cov=simvue -n auto"
testpaths = [
Expand Down
1 change: 0 additions & 1 deletion simvue/factory/proxy/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,6 @@ def list_alerts(self) -> list[dict[str, typing.Any]]:
if not (response_data := response.json()) or (
(data := response_data.get("data")) is None
):
print(response_data)
self._error(
"Expected key 'alerts' in response from server during alert retrieval"
)
Expand Down
7 changes: 0 additions & 7 deletions simvue/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,3 @@ def git_info(repository: str) -> dict[str, typing.Any]:
"git.dirty": dirty,
}
return {}


if __name__ in "__main__":
import os.path
import json

print(json.dumps(git_info(os.path.dirname(__file__)), indent=2))