|
| 1 | +# Learn more about this config here: https://pre-commit.com/ |
| 2 | + |
| 3 | +# To enable these pre-commit hooks run: |
| 4 | +# `pipx install pre-commit` or `brew install pre-commit` |
| 5 | +# Then in the project root directory run `pre-commit install` |
| 6 | + |
| 7 | +repos: |
| 8 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 9 | + rev: v6.0.0 |
| 10 | + hooks: |
| 11 | + - id: check-added-large-files |
| 12 | + - id: check-ast |
| 13 | + # - id: check-builtin-literals |
| 14 | + - id: check-case-conflict |
| 15 | + - id: check-docstring-first |
| 16 | + exclude: "test_s2gs/test_all.py$" |
| 17 | + # - id: check-executables-have-shebangs |
| 18 | + - id: check-json |
| 19 | + - id: check-merge-conflict |
| 20 | + - id: check-shebang-scripts-are-executable |
| 21 | + - id: check-symlinks |
| 22 | + - id: check-toml |
| 23 | + - id: check-vcs-permalinks |
| 24 | + - id: check-xml |
| 25 | + - id: check-yaml |
| 26 | + - id: debug-statements |
| 27 | + - id: destroyed-symlinks |
| 28 | + - id: detect-private-key |
| 29 | + - id: end-of-file-fixer |
| 30 | + - id: file-contents-sorter |
| 31 | + - id: fix-byte-order-marker |
| 32 | + - id: forbid-new-submodules |
| 33 | + - id: forbid-submodules |
| 34 | + #- id: mixed-line-ending |
| 35 | + # args: |
| 36 | + # - --fix=lf |
| 37 | + #- id: name-tests-test |
| 38 | + #- id: pretty-format-json |
| 39 | + # exclude: fe/jsconfig.json |
| 40 | + - id: requirements-txt-fixer |
| 41 | + - id: sort-simple-yaml |
| 42 | + - id: trailing-whitespace |
| 43 | + |
| 44 | + - repo: https://github.com/MarcoGorelli/auto-walrus |
| 45 | + rev: 0.3.4 |
| 46 | + hooks: |
| 47 | + - id: auto-walrus |
| 48 | + |
| 49 | + - repo: https://github.com/codespell-project/codespell |
| 50 | + rev: v2.4.1 |
| 51 | + hooks: |
| 52 | + - id: codespell # See pyproject.toml for args |
| 53 | + additional_dependencies: |
| 54 | + - tomli |
| 55 | + |
| 56 | + - repo: https://github.com/astral-sh/ruff-pre-commit |
| 57 | + rev: v0.13.2 |
| 58 | + hooks: |
| 59 | + - id: ruff-check |
| 60 | + # - id: ruff-format |
| 61 | + |
| 62 | + - repo: https://github.com/tox-dev/pyproject-fmt |
| 63 | + rev: v2.6.0 |
| 64 | + hooks: |
| 65 | + - id: pyproject-fmt |
| 66 | + |
| 67 | + - repo: https://github.com/abravalheri/validate-pyproject |
| 68 | + rev: v0.24.1 |
| 69 | + hooks: |
| 70 | + - id: validate-pyproject |
0 commit comments