|
| 1 | +repos: |
| 2 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 3 | + rev: v3.4.0 |
| 4 | + hooks: |
| 5 | + - id: no-commit-to-branch |
| 6 | + args: [--branch, main] |
| 7 | + - id: check-added-large-files |
| 8 | + - id: check-ast |
| 9 | + - id: check-builtin-literals |
| 10 | + - id: check-byte-order-marker |
| 11 | + - id: check-case-conflict |
| 12 | + - id: check-docstring-first |
| 13 | + - id: check-executables-have-shebangs |
| 14 | + - id: check-json |
| 15 | + - id: check-merge-conflict |
| 16 | + - id: check-symlinks |
| 17 | + - id: check-vcs-permalinks |
| 18 | + - id: check-xml |
| 19 | + - id: check-yaml |
| 20 | + - id: debug-statements |
| 21 | + - id: detect-private-key |
| 22 | + - id: end-of-file-fixer |
| 23 | + - id: fix-byte-order-marker |
| 24 | + - id: forbid-new-submodules |
| 25 | + - id: mixed-line-ending |
| 26 | + - id: trailing-whitespace |
| 27 | + args: ['--markdown-linebreak-ext=md'] |
| 28 | + - repo: https://github.com/asottile/add-trailing-comma |
| 29 | + rev: v2.1.0 |
| 30 | + hooks: |
| 31 | + - id: add-trailing-comma |
| 32 | + - repo: git://github.com/Lucas-C/pre-commit-hooks |
| 33 | + rev: v1.1.9 |
| 34 | + hooks: |
| 35 | + - id: forbid-crlf |
| 36 | + - id: forbid-tabs |
| 37 | + - repo: https://github.com/asottile/pyupgrade |
| 38 | + rev: v2.11.0 |
| 39 | + hooks: |
| 40 | + - id: pyupgrade |
| 41 | + args: ['--py3-plus'] |
| 42 | + - repo: https://github.com/PyCQA/isort |
| 43 | + rev: 5.8.0 |
| 44 | + hooks: |
| 45 | + - id: isort |
| 46 | + - repo: https://github.com/python/black |
| 47 | + rev: 20.8b1 |
| 48 | + hooks: |
| 49 | + - id: black |
| 50 | + args: ['--target-version', 'py37', '--line-length', '128'] |
| 51 | + - repo: https://gitlab.com/pycqa/flake8 |
| 52 | + rev: 3.9.0 |
| 53 | + hooks: |
| 54 | + - id: flake8 |
| 55 | + additional_dependencies: [flake8-eradicate] |
| 56 | + args: ["--max-line-length", "130"] |
| 57 | + - repo: https://github.com/pre-commit/mirrors-mypy |
| 58 | + rev: v0.812 |
| 59 | + hooks: |
| 60 | + - id: mypy |
| 61 | + additional_dependencies: [tokenize-rt==4.1.0] |
| 62 | + types: [python] |
| 63 | + args: ['--follow-imports=skip', '--ignore-missing-imports'] |
| 64 | + - repo: https://github.com/pre-commit/pygrep-hooks |
| 65 | + rev: v1.8.0 |
| 66 | + hooks: |
| 67 | + - id: python-check-blanket-noqa |
| 68 | + - id: python-check-mock-methods |
| 69 | + - id: python-no-eval |
| 70 | + - id: python-no-log-warn |
| 71 | + - id: python-use-type-annotations |
| 72 | + - repo: https://github.com/asottile/add-trailing-comma |
| 73 | + rev: v2.1.0 |
| 74 | + hooks: |
| 75 | + - id: add-trailing-comma |
| 76 | + - repo: https://github.com/Lucas-C/pre-commit-hooks-safety |
| 77 | + rev: v1.2.1 |
| 78 | + hooks: |
| 79 | + - id: python-safety-dependencies-check |
| 80 | + stages: [manual] |
| 81 | + - repo: https://github.com/Lucas-C/pre-commit-hooks-bandit |
| 82 | + rev: v1.0.4 |
| 83 | + hooks: |
| 84 | + - id: python-bandit-vulnerability-check |
| 85 | + stages: [manual] |
| 86 | + - repo: https://github.com/Lucas-C/pre-commit-hooks |
| 87 | + rev: v1.1.9 |
| 88 | + hooks: |
| 89 | + - id: forbid-crlf |
| 90 | + - id: remove-crlf |
| 91 | + - id: forbid-tabs |
| 92 | + - id: remove-tabs |
| 93 | + - repo: https://github.com/PyCQA/isort |
| 94 | + rev: 5.8.0 |
| 95 | + hooks: |
| 96 | + - id: isort |
| 97 | + types: [python] |
| 98 | + args: ["--profile", "black", "--filter-files", "-l 128"] |
| 99 | + - repo: https://github.com/python/black |
| 100 | + rev: 20.8b1 |
| 101 | + hooks: |
| 102 | + - id: black |
| 103 | + args: ['--target-version', 'py35', '--line-length', '128'] |
0 commit comments