mirror of https://github.com/sipwise/ngcpcfg.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.2 KiB
46 lines
1.2 KiB
---
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v3.2.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
exclude: |
|
|
(?x)^(
|
|
lib/.*|
|
|
t/fixtures/.*
|
|
)$
|
|
- id: check-yaml
|
|
- id: check-added-large-files
|
|
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
|
|
rev: 0.0.11 # or specific tag
|
|
hooks:
|
|
- id: yamlfmt
|
|
args: [--mapping, '2', --sequence, '4', --offset, '2', --width, '150']
|
|
exclude: |
|
|
(?x)^(.yamllint|testsuite/.*)$
|
|
- repo: https://github.com/adrienverge/yamllint.git
|
|
rev: v1.26.3
|
|
hooks:
|
|
- id: yamllint
|
|
args: [--format, parsable, --strict]
|
|
exclude: ^testsuite/.*
|
|
- repo: https://github.com/asottile/reorder_python_imports
|
|
rev: v2.6.0
|
|
hooks:
|
|
- id: reorder-python-imports
|
|
args: [--py37-plus]
|
|
- repo: https://github.com/psf/black
|
|
rev: 21.8b0
|
|
hooks:
|
|
- id: black
|
|
args: [--line-length, '80']
|
|
- repo: https://gitlab.com/PyCQA/flake8
|
|
rev: 3.9.2
|
|
hooks:
|
|
- id: flake8
|
|
- repo: https://github.com/jumanjihouse/pre-commit-hooks
|
|
rev: 2.1.5
|
|
hooks:
|
|
- id: shellcheck
|