mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-15 14:15:55 -06:00
chore(pre-commit): update pre-commit hooks
This commit is contained in:
parent
43015c916f
commit
a6761eb5c4
5 changed files with 15 additions and 10 deletions
|
|
@ -90,6 +90,7 @@ warn_redundant_casts = true
|
|||
warn_unreachable = true
|
||||
warn_unused_configs = true
|
||||
warn_unused_ignores = true
|
||||
no_site_packages = true
|
||||
|
||||
[tool.pylint]
|
||||
main.py-version = "3.8"
|
||||
|
|
@ -174,6 +175,9 @@ ignore = [
|
|||
# TRY003: avoid specifying long messages outside the exception class
|
||||
# long messages are necessary for clarity
|
||||
"TRY003",
|
||||
# FURB152: literals that are similar to constants in `math` module.
|
||||
# change code semantics
|
||||
"FURB152",
|
||||
]
|
||||
|
||||
[tool.ruff.lint.per-file-ignores]
|
||||
|
|
@ -207,6 +211,7 @@ ignore = [
|
|||
[tool.ruff.lint.isort]
|
||||
known-first-party = ["nvitop", "nvitop_exporter"]
|
||||
extra-standard-library = ["typing_extensions"]
|
||||
known-local-folder = ["tests"]
|
||||
lines-after-imports = 2
|
||||
|
||||
[tool.ruff.lint.pydocstyle]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue