|
1 | | -# See https://pre-commit.com for more information |
2 | | -# See https://pre-commit.com/hooks.html for more hooks |
| 1 | +# This file is managed by `repo_helper`. Don't edit it directly |
| 2 | +--- |
| 3 | + |
3 | 4 | repos: |
4 | | -- repo: https://github.com/pre-commit/pre-commit-hooks |
5 | | - rev: v2.4.0 |
6 | | - hooks: |
7 | | - - id: check-added-large-files |
8 | | - - id: check-byte-order-marker |
9 | | - - id: check-case-conflict |
10 | | - - id: check-docstring-first |
11 | | - - id: check-executables-have-shebangs |
12 | | - - id: check-json |
13 | | - - id: check-symlinks |
14 | | - - id: check-vcs-permalinks |
15 | | - - id: check-yaml |
16 | | - - id: detect-private-key |
17 | | - - id: end-of-file-fixer |
18 | | - - id: requirements-txt-fixer |
19 | | -# - id: trailing-whitespace |
20 | | - |
21 | | -- repo: https://github.com/pre-commit/pygrep-hooks |
22 | | - rev: v1.5.1 |
23 | | - hooks: |
24 | | - - id: python-no-eval |
25 | | - - id: python-use-type-annotations |
26 | | - |
27 | | -- repo: https://github.com/asottile/pyupgrade |
28 | | - rev: v1.5.1 |
29 | | - hooks: |
30 | | - - id: pyupgrade |
| 5 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 6 | + rev: v2.4.0 |
| 7 | + hooks: |
| 8 | + - id: check-added-large-files |
| 9 | + - id: check-byte-order-marker |
| 10 | + - id: check-case-conflict |
| 11 | + - id: check-docstring-first |
| 12 | + - id: check-executables-have-shebangs |
| 13 | + - id: check-json |
| 14 | + - id: check-symlinks |
| 15 | + - id: check-vcs-permalinks |
| 16 | + - id: check-yaml |
| 17 | + - id: detect-private-key |
| 18 | + - id: end-of-file-fixer |
| 19 | + - id: requirements-txt-fixer |
| 20 | + - id: trailing-whitespace |
| 21 | + |
| 22 | + - repo: https://github.com/pre-commit/pygrep-hooks |
| 23 | + rev: v1.5.1 |
| 24 | + hooks: |
| 25 | + - id: python-no-eval |
| 26 | + - id: python-use-type-annotations |
| 27 | + |
| 28 | + - repo: https://github.com/asottile/pyupgrade |
| 29 | + rev: v1.5.1 |
| 30 | + hooks: |
| 31 | + - id: pyupgrade |
| 32 | + args: [--py36-plus] |
| 33 | + |
| 34 | + - repo: https://github.com/pre-commit/mirrors-yapf |
| 35 | + rev: v0.30.0 |
| 36 | + hooks: |
| 37 | + - id: yapf |
| 38 | + exclude: ^(doc-source/conf|__pkginfo__|make_conda_recipe|setup)\.py$ |
| 39 | + |
| 40 | + |
| 41 | + - repo: https://github.com/Lucas-C/pre-commit-hooks |
| 42 | + rev: v1.1.7 |
| 43 | + hooks: |
| 44 | + - id: forbid-crlf |
| 45 | + - id: remove-crlf |
| 46 | + |
| 47 | +# - repo: https://github.com/shellcheck-py/shellcheck-py |
| 48 | +# rev: v0.7.1.1 |
| 49 | +# hooks: |
| 50 | +# - id: shellcheck |
| 51 | + |
| 52 | +# - repo: https://github.com/adrienverge/yamllint |
| 53 | +# rev: v1.23.0 |
| 54 | +# hooks: |
| 55 | +# - id: yamllint |
0 commit comments