fix(tui/host): ignore errors when collecting host metrics (#163)

This commit is contained in:
Xuehai Pan 2025-04-20 05:05:42 +08:00 committed by GitHub
parent 57b48e6a3a
commit dfb4e3bf55
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 174 additions and 71 deletions

View file

@ -197,6 +197,12 @@ ignore = [
"ANN", # flake8-annotations
"RUF012", # mutable-class-default
]
"!nvitop/tui/**/*.py" = [
"TID251", # banned-api
]
"nvitop/tui/library/*.py" = [
"TID251", # banned-api
]
"docs/source/conf.py" = [
"D", # pydocstyle
"INP001", # flake8-no-pep420
@ -220,3 +226,6 @@ inline-quotes = "single"
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.flake8-tidy-imports.banned-api]
"nvitop.api".msg = "Use `nvitop.tui.library` instead of `nvitop.api` in `nvitop.tui`."