You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
[tool.ruff]
line-length = 88
exclude = [
"__init__.py",
]
[tool.ruff.lint]
ignore = [
# whitespace before :
"E203"
]
select = [
# (pycodestyle)
"E4",
"E7",
"E9",
# (pyflakes)
"F",
# (flake8-tidy-imports) banned-api
"TID251"
]
[tool.ruff.lint.flake8-tidy-imports.banned-api]
"torch".msg = "Use 'import_optional(\"torch\")' in library code, or the 'torch' pytest fixture in test code (see conftest.py), instead of 'import torch'."
[tool.ruff.lint.per-file-ignores]
# allow importing 'torch' directly in cugraph-pyg examples
"python/cugraph-pyg/cugraph_pyg/examples/*" = [
"TID251"
]
# allow importing 'torch' directly in pylibwholegraph examples