|
| 1 | +exclude: 'setup.cfg' |
| 2 | +repos: |
| 3 | +- repo: https://github.com/pre-commit/pre-commit-hooks |
| 4 | + rev: v1.2.1-1 |
| 5 | + hooks: |
| 6 | + - id: pretty-format-json |
| 7 | + name: Pretty format JSON |
| 8 | + args: |
| 9 | + - --no-sort-keys |
| 10 | + |
| 11 | + - id: trailing-whitespace |
| 12 | + name: Fix trailing whitespace |
| 13 | + |
| 14 | + - id: end-of-file-fixer |
| 15 | + name: Fix missing EOF |
| 16 | + |
| 17 | + - id: check-executables-have-shebangs |
| 18 | + name: Check exeutables for shebangs |
| 19 | + |
| 20 | + - id: check-added-large-files |
| 21 | + name: Check for any large files added |
| 22 | + |
| 23 | + - id: check-merge-conflict |
| 24 | + name: Check for merge conflict fragments |
| 25 | + |
| 26 | + - id: check-case-conflict |
| 27 | + name: Check for filesystem character case conflicts |
| 28 | + |
| 29 | + - id: detect-private-key |
| 30 | + name: Check for cleartext private keys stored |
| 31 | + |
| 32 | + - id: flake8 |
| 33 | + name: Check for Python style guideline violations |
| 34 | + |
| 35 | + - id: check-yaml |
| 36 | + name: Validate YAML |
| 37 | + |
| 38 | + id: fix-encoding-pragma |
| 39 | + name: Check for utf-8 encoding |
| 40 | + |
| 41 | + - id: check-json |
| 42 | + name: Validate JSON |
| 43 | + |
| 44 | + - id: check-ast |
| 45 | + name: Check Python abstract syntax tree |
| 46 | + |
| 47 | + - id: double-quote-string-fixer |
| 48 | + name: Replace Python " with ' |
| 49 | + |
| 50 | + - id: autopep8-wrapper |
| 51 | + args: |
| 52 | + - --in-place |
| 53 | + - --aggressive |
| 54 | + - --aggressive |
| 55 | + - --experimental |
| 56 | + name: Pretty format Python |
| 57 | + |
| 58 | +- repo: https://github.com/asottile/reorder_python_imports |
| 59 | + sha: v1.1.1 |
| 60 | + hooks: |
| 61 | + - id: reorder-python-imports |
| 62 | + name: Reorder Python imports |
| 63 | + |
| 64 | +- repo: https://github.com/asottile/add-trailing-comma |
| 65 | + sha: v0.7.0 |
| 66 | + hooks: |
| 67 | + - id: add-trailing-comma |
| 68 | + name: Fix Python trailing commas |
| 69 | + args: |
| 70 | + - --py36-plus |
0 commit comments