Browse Source

[pre-commit] update pre-commit (#1726)

* update pre-commit

* update pre-commit
pull/1732/head
HELSON 2 years ago committed by GitHub
parent
commit
2e1dbfb463
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      .isort.cfg
  2. 21
      .pre-commit-config.yaml

5
.isort.cfg

@ -0,0 +1,5 @@
[settings]
line_length = 120
multi_line_output=3
include_trailing_comma = true
ignore_comments = true

21
.pre-commit-config.yaml

@ -1,10 +1,31 @@
repos:
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
name: sort all imports (python)
- repo: https://github.com/pre-commit/mirrors-yapf
rev: v0.32.0
hooks:
- id: yapf
name: yapf formatter
args: ['--style=.style.yapf', '--parallel', '--in-place']
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v13.0.1
hooks:
- id: clang-format
name: clang formatter
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-yaml
- id: check-merge-conflict
- id: check-case-conflict
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
args: ['--fix=lf']

Loading…
Cancel
Save