|
1 | | -- repo: https://github.com/pre-commit/pre-commit-hooks |
2 | | - sha: v0.9.5 |
| 1 | +repos: |
| 2 | + - repo: 'https://github.com/pre-commit/pre-commit-hooks' |
| 3 | + rev: v2.4.0 |
3 | 4 | hooks: |
4 | | - - id: autopep8-wrapper |
5 | | - - id: check-ast |
6 | | - - id: check-case-conflict |
7 | | - - id: check-merge-conflict |
8 | | - - id: double-quote-string-fixer |
9 | | - - id: end-of-file-fixer |
10 | | - - id: flake8 |
11 | | - - id: requirements-txt-fixer |
12 | | - - id: trailing-whitespace |
13 | | - - id: fix-encoding-pragma |
14 | | - - id: debug-statements |
15 | | -- repo: https://github.com/asottile/reorder_python_imports |
16 | | - sha: v0.3.5 |
| 5 | + - id: pretty-format-json |
| 6 | + name: 'Pretty format JSON' |
| 7 | + args: |
| 8 | + - '--no-sort-keys' |
| 9 | + - '--autofix' |
| 10 | + - '--indent=2' |
| 11 | + - id: trailing-whitespace |
| 12 | + name: 'Fix trailing whitespace' |
| 13 | + exclude: setup.cfg |
| 14 | + - id: end-of-file-fixer |
| 15 | + name: 'Fix missing EOF' |
| 16 | + exclude: setup.cfg |
| 17 | + - id: check-executables-have-shebangs |
| 18 | + name: 'Check exeutables for shebangs' |
| 19 | + - id: check-merge-conflict |
| 20 | + name: 'Check for merge conflict fragments' |
| 21 | + - id: check-case-conflict |
| 22 | + name: 'Check for filesystem character case conflicts' |
| 23 | + - id: detect-private-key |
| 24 | + name: 'Check for cleartext private keys stored' |
| 25 | + - id: flake8 |
| 26 | + additional_dependencies: |
| 27 | + - flake8-docstrings |
| 28 | + - flake8-mutable |
| 29 | + - flake8-type-annotations |
| 30 | + - flake8-eradicate |
| 31 | + - flake8-bugbear |
| 32 | + name: 'Check for Python style guideline violations' |
| 33 | + - id: check-json |
| 34 | + name: 'Validate JSON' |
| 35 | + - id: check-ast |
| 36 | + name: 'Check Python abstract syntax tree' |
| 37 | + - repo: 'https://github.com/asottile/reorder_python_imports' |
| 38 | + rev: v1.8.0 |
17 | 39 | hooks: |
18 | | - - id: reorder-python-imports |
19 | | - language_version: python3.6 |
20 | | -- repo: https://github.com/Lucas-C/pre-commit-hooks-safety |
21 | | - sha: v1.1.0 |
| 40 | + - id: reorder-python-imports |
| 41 | + name: 'Reorder Python imports' |
| 42 | + - repo: 'https://github.com/pre-commit/mirrors-autopep8' |
| 43 | + rev: v1.4.4 |
22 | 44 | hooks: |
23 | | - - id: python-safety-dependencies-check |
24 | | -- repo: https://github.com/asottile/add-trailing-comma |
25 | | - sha: v0.6.4 |
| 45 | + - id: autopep8 |
| 46 | + name: 'Pretty format Python' |
| 47 | + args: |
| 48 | + - '--in-place' |
| 49 | + - '--aggressive' |
| 50 | + - '--aggressive' |
| 51 | + - '--experimental' |
| 52 | + - '--remove-all-unused-imports' |
| 53 | + - '--ignore-init-module-imports' |
| 54 | + - '--remove-unused-variable' |
| 55 | + - repo: https://github.com/psf/black |
| 56 | + rev: stable |
26 | 57 | hooks: |
27 | | - - id: add-trailing-comma |
| 58 | + - id: black |
| 59 | + name: 'Ruthlessly format Python' |
| 60 | + language_version: python3.7 |
| 61 | + args: |
| 62 | + - '--line-length=79' |
0 commit comments