mirror of https://github.com/hpcaitech/ColossalAI
parent
c626b23960
commit
2e1dbfb463
|
@ -0,0 +1,5 @@
|
|||
[settings]
|
||||
line_length = 120
|
||||
multi_line_output=3
|
||||
include_trailing_comma = true
|
||||
ignore_comments = true
|
|
@ -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…
Reference in New Issue