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

This commit is contained in:
Xuehai Pan 2023-07-01 17:15:08 +08:00
parent 7ebf9056fb
commit 7c74e02eb0
8 changed files with 45 additions and 27 deletions

View file

@ -164,19 +164,20 @@ ignore = [
[tool.ruff.per-file-ignores]
"__init__.py" = [
"F401", # unused-import
"F401", # unused-import
]
"setup.py" = [
"ANN", # flake8-annotations
"ANN", # flake8-annotations
]
"nvitop/api/lib*.py" = [
"N", # pep8-naming
"N", # pep8-naming
]
"nvitop/callbacks/*.py" = [
"ANN", # flake8-annotations
"ANN", # flake8-annotations
]
"nvitop/gui/**/*.py" = [
"ANN", # flake8-annotations
"ANN", # flake8-annotations
"RUF012", # mutable-class-default
]
[tool.ruff.flake8-annotations]