|
| 1 | +repos: |
| 2 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 3 | + rev: "5191f112dfd133e97acba8c2162c37d8613cf54b" |
| 4 | + hooks: |
| 5 | + - id: check-added-large-files |
| 6 | + - id: check-case-conflict |
| 7 | + - id: check-merge-conflict |
| 8 | + - id: check-symlinks |
| 9 | + - id: check-yaml |
| 10 | + - id: debug-statements |
| 11 | + - id: end-of-file-fixer |
| 12 | + - id: mixed-line-ending |
| 13 | + - id: name-tests-test |
| 14 | + args: ["--pytest-test-first"] |
| 15 | + - id: requirements-txt-fixer |
| 16 | + - id: trailing-whitespace |
| 17 | + |
| 18 | + - repo: https://github.com/hakancelik96/unimport |
| 19 | + rev: 33ead41ee30f1d323a9c2fcfd0114297efbbc4d5 |
| 20 | + hooks: |
| 21 | + - id: unimport |
| 22 | + args: [--remove, --include-star-import] |
| 23 | + - repo: https://github.com/pycqa/isort |
| 24 | + rev: "06d8ef58a15751eda085547cc2095a6dea098f3b" |
| 25 | + hooks: |
| 26 | + - id: isort |
| 27 | + files: "kweb/.*" |
| 28 | + args: ["--profile", "black", "--filter-files"] |
| 29 | + |
| 30 | + - repo: https://github.com/psf/black |
| 31 | + rev: "196b1f349eb2baa9bbbc483226874cc01fb7567d" |
| 32 | + hooks: |
| 33 | + - id: black |
| 34 | + |
| 35 | + # - repo: https://github.com/pycqa/flake8 |
| 36 | + # rev: "647996c743f9e77368ce46cc74abe98549dd4c3a" |
| 37 | + # hooks: |
| 38 | + # - id: flake8 |
| 39 | + |
| 40 | + - repo: https://github.com/kynan/nbstripout |
| 41 | + rev: 1185a8d25bb45ada13f64d9591c14d81d69206bc |
| 42 | + hooks: |
| 43 | + - id: nbstripout |
| 44 | + files: ".ipynb" |
| 45 | + |
| 46 | + - repo: https://github.com/asottile/pyupgrade |
| 47 | + rev: 97ed6fb3cf2e650d4f762ba231c3f04c41797710 |
| 48 | + hooks: |
| 49 | + - id: pyupgrade |
| 50 | + args: [--py310-plus, --keep-runtime-typing] |
| 51 | + |
| 52 | + # - repo: https://github.com/codespell-project/codespell |
| 53 | + # rev: 3841ffe24aba604a5d16439c8216b018a7ec649a |
| 54 | + # hooks: |
| 55 | + # - id: codespell |
| 56 | + # args: ["-L TE,TE/TM,te,ba,FPR,fpr_spacing,ro,donot"] |
| 57 | + |
| 58 | + - repo: https://github.com/shellcheck-py/shellcheck-py |
| 59 | + rev: 953faa6870f6663ac0121ab4a800f1ce76bca31f |
| 60 | + hooks: |
| 61 | + - id: shellcheck |
| 62 | + |
| 63 | + # - repo: https://github.com/pre-commit/pygrep-hooks |
| 64 | + # rev: 7b4409161486c6956bb3206ce96db5d56731b1b9 # Use the ref you want to point at |
| 65 | + # hooks: |
| 66 | + # - id: python-use-type-annotations |
| 67 | + |
| 68 | + - repo: https://github.com/PyCQA/bandit |
| 69 | + rev: 91c4d979550888c8d190898279bfdb0af732791e |
| 70 | + hooks: |
| 71 | + - id: bandit |
| 72 | + args: [--exit-zero] |
| 73 | + # ignore all tests, not just tests data |
| 74 | + exclude: ^tests/ |
| 75 | + # - repo: https://github.com/pre-commit/mirrors-mypy |
| 76 | + # rev: "v0.991" |
| 77 | + # hooks: |
| 78 | + # - id: mypy |
| 79 | + # exclude: ^(docs/|example-plugin/|tests/fixtures) |
| 80 | + # additional_dependencies: |
| 81 | + # - "pydantic" |
| 82 | + # - repo: https://github.com/terrencepreilly/darglint |
| 83 | + # rev: master |
| 84 | + # hooks: |
| 85 | + # - id: darglint |
| 86 | + # - repo: https://github.com/pycqa/pydocstyle |
| 87 | + # rev: "a6fe4222012e990042c86cdaaa904a8d059752ee" |
| 88 | + # hooks: |
| 89 | + # - id: pydocstyle |
| 90 | + # additional_dependencies: ["pydocstyle[toml]"] |
| 91 | + # - repo: https://github.com/asottile/reorder_python_imports |
| 92 | + # rev: 2b2f0c74acdb3de316e23ceb7dd0d7945c354050 |
| 93 | + # hooks: |
| 94 | + # - id: reorder-python-imports |
| 95 | + # - repo: https://github.com/PyCQA/pylint |
| 96 | + # rev: v2.14.1 |
| 97 | + # hooks: |
| 98 | + # - id: pylint |
| 99 | + # args: [--exit-zero] |
| 100 | + # - repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks |
| 101 | + # rev: 6565d773ca281682d7062d4c0be74538cc474cc9 |
| 102 | + # hooks: |
| 103 | + # - id: pretty-format-java |
| 104 | + # args: [--autofix] |
| 105 | + # - id: pretty-format-kotlin |
| 106 | + # args: [--autofix] |
| 107 | + # - id: pretty-format-yaml |
| 108 | + # args: [--autofix, --indent, "2"] |
| 109 | + # - repo: https://github.com/adrienverge/yamllint.git |
| 110 | + # rev: v1.21.0 # or higher tag |
| 111 | + # hooks: |
| 112 | + # - id: yamllint |
| 113 | + # args: [--format, parsable, --strict] |
| 114 | + # - repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt |
| 115 | + # rev: 0.1.0 # or specific tag |
| 116 | + # hooks: |
| 117 | + # - id: yamlfmt |
| 118 | + - repo: https://github.com/pre-commit/pygrep-hooks |
| 119 | + rev: "v1.10.0" |
| 120 | + hooks: |
| 121 | + - id: python-check-blanket-noqa |
| 122 | + - id: python-check-blanket-type-ignore |
| 123 | + - id: python-no-log-warn |
| 124 | + - id: python-no-eval |
| 125 | + - id: python-use-type-annotations |
| 126 | + - id: rst-backticks |
| 127 | + - id: rst-directive-colons |
| 128 | + - id: rst-inline-touching-normal |
| 129 | + # - repo: https://github.com/nbQA-dev/nbQA |
| 130 | + # rev: 3e5186603806260939b5f1b0372c058203c65553 |
| 131 | + # hooks: |
| 132 | + # - id: nbqa-black |
| 133 | + # additional_dependencies: [jupytext, black] # optional, only if you're using Jupytext |
| 134 | + # - id: nbqa-pyupgrade |
| 135 | + # args: ["--py37-plus"] |
| 136 | + # # - id: nbqa-flake8 |
| 137 | + # # - id: nbqa-isort |
| 138 | + # # args: ["--float-to-top"] |
| 139 | + - repo: https://github.com/charliermarsh/ruff-pre-commit |
| 140 | + rev: "v0.0.231" |
| 141 | + hooks: |
| 142 | + - id: ruff |
0 commit comments