|
| 1 | +repos: |
| 2 | +- repo: https://github.com/asottile/pyupgrade |
| 3 | + rev: v3.17.0 |
| 4 | + hooks: |
| 5 | + - id: pyupgrade |
| 6 | + args: [--py39] |
| 7 | +- repo: https://github.com/dannysepler/rm_unneeded_f_str |
| 8 | + rev: v0.2.0 |
| 9 | + hooks: |
| 10 | + - id: rm-unneeded-f-str |
| 11 | +- repo: https://github.com/mxr/unkey |
| 12 | + rev: v0.0.1 |
| 13 | + hooks: |
| 14 | + - id: unkey |
| 15 | +- repo: https://github.com/pre-commit/pre-commit-hooks |
| 16 | + rev: v4.6.0 |
| 17 | + hooks: |
| 18 | + - id: check-ast |
| 19 | + - id: fix-byte-order-marker |
| 20 | + - id: end-of-file-fixer |
| 21 | + - id: trailing-whitespace |
| 22 | + - id: check-yaml |
| 23 | + - id: check-builtin-literals |
| 24 | + - id: check-toml |
| 25 | + - id: check-builtin-literals |
| 26 | + - id: check-yaml |
| 27 | + - id: double-quote-string-fixer |
| 28 | + - id: check-merge-conflict |
| 29 | +- repo: https://github.com/PyCQA/docformatter |
| 30 | + rev: v1.7.5 |
| 31 | + hooks: |
| 32 | + - id: docformatter |
| 33 | + additional_dependencies: [tomli] |
| 34 | + args: [--in-place, --config, ./pyproject.toml] |
| 35 | +- repo: https://github.com/jshwi/docsig |
| 36 | + rev: v0.63.0 |
| 37 | + hooks: |
| 38 | + - id: docsig |
| 39 | + args: |
| 40 | + - --check-class |
| 41 | + - --check-dunders |
| 42 | + - --check-overridden |
| 43 | + - --check-protected |
| 44 | + - --ignore-no-params |
| 45 | +- repo: https://github.com/psf/black |
| 46 | + rev: 24.8.0 |
| 47 | + hooks: |
| 48 | + - id: black |
| 49 | +- repo: https://github.com/asottile/reorder_python_imports |
| 50 | + rev: v3.13.0 |
| 51 | + hooks: |
| 52 | + - id: reorder-python-imports |
| 53 | +- repo: https://github.com/pre-commit/pygrep-hooks |
| 54 | + rev: v1.10.0 |
| 55 | + hooks: |
| 56 | + - id: python-use-type-annotations |
| 57 | + - id: python-no-eval |
| 58 | + - id: text-unicode-replacement-char |
| 59 | +- repo: https://github.com/pycqa/flake8 |
| 60 | + rev: 7.1.1 |
| 61 | + hooks: |
| 62 | + - id: flake8 |
| 63 | + additional_dependencies: |
| 64 | + - flake8-bugbear |
| 65 | + - flake8-implicit-str-concat |
| 66 | + args: [--max-line-length=100] |
| 67 | +- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks |
| 68 | + rev: v2.14.0 |
| 69 | + hooks: |
| 70 | + - id: pretty-format-yaml |
| 71 | + args: [--autofix, --indent, '2'] |
| 72 | + - id: pretty-format-toml |
| 73 | + args: [--autofix, --indent, '2'] |
| 74 | +- repo: https://codeberg.org/frnmst/md-toc |
| 75 | + rev: 8.2.3 |
| 76 | + hooks: |
| 77 | + - id: md-toc |
| 78 | + args: [-p, github] |
| 79 | +- repo: https://github.com/mrtazz/checkmake.git |
| 80 | + rev: 0.2.2 |
| 81 | + hooks: |
| 82 | + - id: checkmake |
| 83 | +- repo: https://github.com/PyCQA/bandit |
| 84 | + rev: 1.7.10 |
| 85 | + hooks: |
| 86 | + - id: bandit |
| 87 | + args: [-c, pyproject.toml] |
| 88 | + additional_dependencies: ['bandit[toml]'] |
| 89 | +default_language_version: |
| 90 | + python: python3.9 |
0 commit comments