| 1 | ci:
|
| 2 | autoupdate_commit_msg: "chore: update pre-commit hooks"
|
| 3 |
|
| 4 | repos:
|
| 5 | - repo: https://github.com/pre-commit/pre-commit-hooks
|
| 6 | rev: "v6.0.0"
|
| 7 | hooks:
|
| 8 | - id: check-added-large-files
|
| 9 | - id: check-case-conflict
|
| 10 | - id: check-merge-conflict
|
| 11 | - id: check-symlinks
|
| 12 | - id: mixed-line-ending
|
| 13 | - id: detect-private-key
|
| 14 | # - id: check-ast
|
| 15 | - id: trailing-whitespace
|
| 16 |
|
| 17 | - repo: https://github.com/crate-ci/typos
|
| 18 | rev: v1
|
| 19 | hooks:
|
| 20 | - id: typos
|
| 21 | files: \.(py|md|rst|yaml|toml)
|
| 22 | exclude: pyproject.toml
|
| 23 |
|
| 24 | - repo: https://github.com/astral-sh/ruff-pre-commit
|
| 25 | rev: v0.14.14
|
| 26 | hooks:
|
| 27 | # Run the linter.
|
| 28 | - id: ruff
|
| 29 | args: ["--fix"]
|
| 30 | # Run the formatter.
|
| 31 | - id: ruff-format
|
| 32 |
|
| 33 | - repo: https://github.com/pre-commit/mirrors-prettier
|
| 34 | rev: "v4.0.0-alpha.8" # Use the sha or tag you want to point at
|
| 35 | hooks:
|
| 36 | - id: prettier
|
| 37 | types_or: ["javascript", "css"]
|
| 38 |
|