2020-02-01 10:14:55 +08:00
|
|
|
exclude: ^tests/data/
|
2019-12-12 21:40:42 +08:00
|
|
|
repos:
|
2020-04-20 01:23:53 +08:00
|
|
|
- repo: https://gitlab.com/pycqa/flake8.git
|
2020-05-30 13:03:33 +08:00
|
|
|
rev: 3.8.0
|
2020-04-20 01:23:53 +08:00
|
|
|
hooks:
|
|
|
|
- id: flake8
|
|
|
|
- repo: https://github.com/asottile/seed-isort-config
|
|
|
|
rev: v2.1.0
|
|
|
|
hooks:
|
|
|
|
- id: seed-isort-config
|
|
|
|
- repo: https://github.com/timothycrosley/isort
|
|
|
|
rev: 4.3.21
|
|
|
|
hooks:
|
2020-02-02 18:18:17 +08:00
|
|
|
- id: isort
|
2020-04-20 01:23:53 +08:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-yapf
|
2020-05-30 13:03:33 +08:00
|
|
|
rev: v0.30.0
|
2020-04-20 01:23:53 +08:00
|
|
|
hooks:
|
|
|
|
- id: yapf
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
|
|
rev: v2.5.0
|
|
|
|
hooks:
|
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: check-yaml
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: requirements-txt-fixer
|
|
|
|
- id: double-quote-string-fixer
|
|
|
|
- id: fix-encoding-pragma
|
|
|
|
args: ["--remove"]
|
|
|
|
- id: mixed-line-ending
|
|
|
|
args: ["--fix=lf"]
|
2020-07-04 00:55:25 +08:00
|
|
|
- repo: https://github.com/myint/docformatter
|
|
|
|
rev: v1.3.1
|
|
|
|
hooks:
|
|
|
|
- id: docformatter
|
|
|
|
args: ["--in-place", "--wrap-descriptions", "79"]
|
2020-06-28 23:15:47 +08:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: clang-format
|
|
|
|
name: clang-format
|
|
|
|
description: Format files with ClangFormat
|
2020-06-29 18:48:50 +08:00
|
|
|
entry: clang-format -style=google -i
|
2020-06-28 23:15:47 +08:00
|
|
|
language: system
|
|
|
|
files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|cuh|proto)$
|