mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-15 14:15:55 -06:00
fix(tui/host): ignore errors when collecting host metrics (#163)
This commit is contained in:
parent
57b48e6a3a
commit
dfb4e3bf55
12 changed files with 174 additions and 71 deletions
|
|
@ -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`."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue