nvitop/.pre-commit-config.yaml
Xuehai Pan daff4e22af chore(pre-commit): update pre-commit hooks
Signed-off-by: Xuehai Pan <XuehaiPan@pku.edu.cn>
2022-07-19 15:40:48 +08:00

40 lines
1.1 KiB
YAML

# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-symlinks
- id: destroyed-symlinks
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: check-ast
- id: check-added-large-files
- id: check-merge-conflict
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: detect-private-key
- id: debug-statements
- id: double-quote-string-fixer
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
- id: isort
stages: [commit, push, manual]
- repo: https://github.com/psf/black
rev: 22.6.0
hooks:
- id: black
args: [--safe]
stages: [commit, push, manual]
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
require_serial: true
stages: [commit, push, manual]