| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- # See https://pre-commit.com for more information
- # See https://pre-commit.com/hooks.html for more hooks
- repos:
- - repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v2.4.0
- hooks:
- - id: check-added-large-files
- - id: check-case-conflict
- - id: check-executables-have-shebangs
- - id: check-merge-conflict
- - id: check-symlinks
- - id: check-yaml
- - id: detect-private-key
- - id: end-of-file-fixer
- - id: mixed-line-ending
- args: ['--fix=lf']
- - id: trailing-whitespace
- - repo: https://github.com/codespell-project/codespell
- rev: v1.17.1
- hooks:
- - id: codespell
- args: ['-L', 'circularly,copyable,pullrequest']
- exclude: '^src/jekyll/Gemfile.lock$'
- - repo: local
- hooks:
- - id: markdown-toc
- name: Update table of contents
- description: Runs https://github.com/jonschlinkert/markdown-toc
- entry: src/scripts/pre-commit-toc.js
- language: node
- additional_dependencies: [markdown-toc]
- files: .*\.md$
- exclude: ^src/jekyll/theme/
- - id: proposal-list
- name: Update list of proposals
- description: Updates the list of proposals in proposals/README.md
- entry: src/scripts/pre-commit-proposal-list.py
- language: python
- language_version: python3
- files: ^proposals/(README|p.*)\.md$
- pass_filenames: false
- # Formatters should be run late so that they can re-format any prior changes.
- - repo: https://github.com/psf/black
- rev: stable
- hooks:
- - id: black
- language_version: python3
- - repo: https://github.com/prettier/prettier
- rev: 2.0.5
- hooks:
- - id: prettier
- exclude: ^src/jekyll/theme/
|