.pre-commit-config.yaml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # See https://pre-commit.com for more information
  2. # See https://pre-commit.com/hooks.html for more hooks
  3. repos:
  4. - repo: https://github.com/pre-commit/pre-commit-hooks
  5. rev: v2.4.0
  6. hooks:
  7. - id: check-added-large-files
  8. - id: check-case-conflict
  9. - id: check-executables-have-shebangs
  10. - id: check-merge-conflict
  11. - id: check-symlinks
  12. - id: check-yaml
  13. - id: detect-private-key
  14. - id: end-of-file-fixer
  15. - id: mixed-line-ending
  16. args: ['--fix=lf']
  17. - id: trailing-whitespace
  18. - repo: https://github.com/codespell-project/codespell
  19. rev: v1.17.1
  20. hooks:
  21. - id: codespell
  22. args: ['-L', 'circularly,copyable,pullrequest']
  23. exclude: '^src/jekyll/Gemfile.lock$'
  24. - repo: local
  25. hooks:
  26. - id: markdown-toc
  27. name: Update table of contents
  28. description: Runs https://github.com/jonschlinkert/markdown-toc
  29. entry: src/scripts/pre-commit-toc.js
  30. language: node
  31. additional_dependencies: [markdown-toc]
  32. files: .*\.md$
  33. exclude: ^src/jekyll/theme/
  34. - id: proposal-list
  35. name: Update list of proposals
  36. description: Updates the list of proposals in proposals/README.md
  37. entry: src/scripts/pre-commit-proposal-list.py
  38. language: python
  39. language_version: python3
  40. files: ^proposals/(README|p.*)\.md$
  41. pass_filenames: false
  42. # Formatters should be run late so that they can re-format any prior changes.
  43. - repo: https://github.com/psf/black
  44. rev: stable
  45. hooks:
  46. - id: black
  47. language_version: python3
  48. - repo: https://github.com/prettier/prettier
  49. rev: 2.0.5
  50. hooks:
  51. - id: prettier
  52. exclude: ^src/jekyll/theme/