mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-21 06:45:24 -06:00
56 lines
1.5 KiB
YAML
56 lines
1.5 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.4.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.11.4
|
|
hooks:
|
|
- id: isort
|
|
stages: [commit, push, manual]
|
|
- repo: https://github.com/psf/black
|
|
rev: 22.12.0
|
|
hooks:
|
|
- id: black
|
|
stages: [commit, push, manual]
|
|
- repo: https://github.com/asottile/pyupgrade
|
|
rev: v3.3.1
|
|
hooks:
|
|
- id: pyupgrade
|
|
args: [--py36-plus]
|
|
stages: [commit, push, manual]
|
|
- repo: local
|
|
hooks:
|
|
- id: pylint
|
|
name: pylint
|
|
entry: pylint
|
|
language: system
|
|
types: [python]
|
|
require_serial: true
|
|
stages: [commit, push, manual]
|
|
- repo: https://github.com/pycqa/pydocstyle
|
|
rev: 6.2.2
|
|
hooks:
|
|
- id: pydocstyle
|
|
additional_dependencies: ['.[toml]']
|
|
exclude: |
|
|
(?x)(
|
|
^nvitop/gui/|
|
|
^nvitop/callbacks/|
|
|
^docs/
|
|
)
|