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-07-04 02:53:51 +08:00
|
|
|
rev: 3.8.3
|
2020-04-20 01:23:53 +08:00
|
|
|
hooks:
|
|
|
|
- id: flake8
|
|
|
|
- repo: https://github.com/asottile/seed-isort-config
|
2020-07-04 02:53:51 +08:00
|
|
|
rev: v2.2.0
|
2020-04-20 01:23:53 +08:00
|
|
|
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
|
2020-07-04 02:53:51 +08:00
|
|
|
rev: v3.1.0
|
2020-04-20 01:23:53 +08:00
|
|
|
hooks:
|
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: check-yaml
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: requirements-txt-fixer
|
|
|
|
- id: double-quote-string-fixer
|
2020-07-04 02:53:51 +08:00
|
|
|
- id: check-merge-conflict
|
2020-04-20 01:23:53 +08:00
|
|
|
- id: fix-encoding-pragma
|
|
|
|
args: ["--remove"]
|
|
|
|
- id: mixed-line-ending
|
|
|
|
args: ["--fix=lf"]
|
2020-09-29 10:44:44 +08:00
|
|
|
- repo: https://github.com/jumanjihouse/pre-commit-hooks
|
|
|
|
rev: 2.1.4
|
|
|
|
hooks:
|
|
|
|
- id: markdownlint
|
2021-04-12 14:06:28 +08:00
|
|
|
args: ["-r", "~MD002,~MD013,~MD029,~MD033,~MD034",
|
|
|
|
"-t", "allow_different_nesting"]
|
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-09-29 10:44:44 +08:00
|
|
|
# - repo: local
|
|
|
|
# hooks:
|
|
|
|
# - id: clang-format
|
|
|
|
# name: clang-format
|
|
|
|
# description: Format files with ClangFormat
|
|
|
|
# entry: clang-format -style=google -i
|
|
|
|
# language: system
|
|
|
|
# files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|cuh|proto)$
|