chore(pre-commit): enable pycodestyle

Signed-off-by: Xuehai Pan <XuehaiPan@pku.edu.cn>
This commit is contained in:
Xuehai Pan 2023-01-03 10:20:00 +00:00
parent cb84fa8197
commit cf61d5ddff
2 changed files with 18 additions and 3 deletions

View file

@ -19,17 +19,17 @@ repos:
- id: debug-statements
- id: double-quote-string-fixer
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
rev: 5.11.4
hooks:
- id: isort
stages: [commit, push, manual]
- repo: https://github.com/psf/black
rev: 22.10.0
rev: 22.12.0
hooks:
- id: black
stages: [commit, push, manual]
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.0
rev: v3.3.1
hooks:
- id: pyupgrade
args: [--py36-plus]
@ -43,3 +43,14 @@ repos:
types: [python]
require_serial: true
stages: [commit, push, manual]
- repo: https://github.com/pycqa/pydocstyle
rev: 6.2.1
hooks:
- id: pydocstyle
additional_dependencies: [toml]
exclude: |
(?x)(
^nvitop/gui/|
^nvitop/callbacks/|
^docs/
)

View file

@ -82,3 +82,7 @@ indent = 4
line_length = 100
lines_after_imports = 2
multi_line_output = 3
[tool.pydocstyle]
convention = "google"
match-dir = '^(?!(gui|callbacks|docs))[^\.].*'