|
| 1 | +minimum_pre_commit_version: "2.9.0" |
| 2 | +ci: |
| 3 | + autofix_prs: false |
| 4 | +exclude: ^src/vendor/ |
| 5 | +repos: |
| 6 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 7 | + rev: v4.1.0 |
| 8 | + hooks: |
| 9 | + - id: check-added-large-files |
| 10 | + - id: check-case-conflict |
| 11 | + - id: check-executables-have-shebangs |
| 12 | + - id: check-merge-conflict |
| 13 | + - id: check-shebang-scripts-are-executable |
| 14 | + - id: check-symlinks |
| 15 | + - id: destroyed-symlinks |
| 16 | + - id: detect-private-key |
| 17 | + - id: end-of-file-fixer |
| 18 | + - id: fix-byte-order-marker |
| 19 | + - id: mixed-line-ending |
| 20 | + - id: trailing-whitespace |
| 21 | + # Trailing whitespace breaks yaml files if you use a multiline string |
| 22 | + # with a line that has trailing white space. Many of our recorded |
| 23 | + # tests use strings with trailing white space to represent the final |
| 24 | + # document contents. For example |
| 25 | + # src/test/suite/fixtures/recorded/languages/ruby/changeCondition.yml |
| 26 | + exclude: ^src/test/suite/fixtures/recorded/.*/[^/]*\.yml$ |
| 27 | + - repo: https://github.com/pre-commit/mirrors-prettier |
| 28 | + rev: "v2.6.2" |
| 29 | + hooks: |
| 30 | + - id: prettier |
| 31 | + - repo: https://github.com/ikamensh/flynt/ |
| 32 | + rev: "0.76" |
| 33 | + hooks: |
| 34 | + - id: flynt |
| 35 | + - repo: https://github.com/Zac-HD/shed |
| 36 | + rev: 0.9.5 |
| 37 | + hooks: |
| 38 | + - id: shed |
| 39 | + # TODO: bump to --py310-plus when Talon moves to Python 3.10. |
| 40 | + args: [--refactor, --py39-plus] |
| 41 | + types_or: [python, markdown, rst] |
0 commit comments