.pre-commit-config.yaml 959 B

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