blob: 3afbd2d0c00ff0122506b37727d2bcc6e8038ef5 [file] [log] [blame]
Eric Kunze2364dcd2021-04-26 11:06:57 -07001# See https://pre-commit.com for more information
2# See https://pre-commit.com/hooks.html for more hooks
3repos:
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 Kunze778b8ac2022-12-05 23:55:42 +000014- repo: https://github.com/pycqa/flake8
Eric Kunze2364dcd2021-04-26 11:06:57 -070015 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 Chong44c11202022-05-11 16:49:42 -070022 rev: 22.3.0
Eric Kunze2364dcd2021-04-26 11:06:57 -070023 hooks:
24 - id: black
25 exclude: python/tosa
26
27- repo: local
28 hooks:
Eric Kunzecc24c352021-08-24 14:11:47 -070029 - 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 Kunze2364dcd2021-04-26 11:06:57 -070038 - 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 Kunzecc24c352021-08-24 14:11:47 -070044 args: ["-i"]