Eric Kunze | 2364dcd | 2021-04-26 11:06:57 -0700 | [diff] [blame] | 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/asottile/reorder_python_imports |
| 5 | # rev: v2.2.0 |
| 6 | # hooks: |
| 7 | # - id: reorder-python-imports |
| 8 | |
| 9 | #- repo: https://github.com/psf/black |
| 10 | #j.rev: 20.8b1 |
| 11 | #j.hooks: |
| 12 | #j.- id: black |
| 13 | |
Eric Kunze | 778b8ac | 2022-12-05 23:55:42 +0000 | [diff] [blame] | 14 | - repo: https://github.com/pycqa/flake8 |
Eric Kunze | 2364dcd | 2021-04-26 11:06:57 -0700 | [diff] [blame] | 15 | rev: 3.7.9 |
| 16 | hooks: |
| 17 | - id: flake8 |
| 18 | exclude: python/tosa |
| 19 | args: [--max-line-length=88, --extend-ignore=E203] |
| 20 | |
| 21 | - repo: https://github.com/psf/black |
TatWai Chong | 44c1120 | 2022-05-11 16:49:42 -0700 | [diff] [blame] | 22 | rev: 22.3.0 |
Eric Kunze | 2364dcd | 2021-04-26 11:06:57 -0700 | [diff] [blame] | 23 | hooks: |
| 24 | - id: black |
| 25 | exclude: python/tosa |
| 26 | |
| 27 | - repo: local |
| 28 | hooks: |
Eric Kunze | cc24c35 | 2021-08-24 14:11:47 -0700 | [diff] [blame] | 29 | - id: regenerate-headers |
| 30 | name: regenerate-headers |
| 31 | language: system |
| 32 | entry: ./regenerate_headers.sh |
| 33 | pass_filenames: false |
| 34 | always_run: true |
| 35 | |
| 36 | - repo: local |
| 37 | hooks: |
Eric Kunze | 2364dcd | 2021-04-26 11:06:57 -0700 | [diff] [blame] | 38 | - id: clang-format |
| 39 | name: clang-format |
| 40 | exclude: tosa_generated.h|build|third_party |
| 41 | language: system |
| 42 | entry: clang-format |
| 43 | types: ["c++"] |
Eric Kunze | cc24c35 | 2021-08-24 14:11:47 -0700 | [diff] [blame] | 44 | args: ["-i"] |