chore(pre-commit): update pre-commit hooks

This commit is contained in:
Xuehai Pan 2026-04-01 17:44:53 +08:00
parent 43015c916f
commit a6761eb5c4
5 changed files with 15 additions and 10 deletions

View file

@ -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]