Jerry Ge | 9c9c8da | 2023-07-19 23:08:16 +0000 | [diff] [blame] | 1 | # Copyright (c) 2021-2023 Arm Limited. |
Jeremy Johnson | 5c1364c | 2022-01-13 15:04:21 +0000 | [diff] [blame] | 2 | # SPDX-License-Identifier: Apache-2.0 |
| 3 | |
| 4 | # See https://pre-commit.com for more information |
| 5 | # See https://pre-commit.com/hooks.html for more hooks |
| 6 | repos: |
| 7 | - repo: https://github.com/asottile/reorder_python_imports |
Jeremy Johnson | 5d1a347 | 2022-03-31 09:50:06 +0100 | [diff] [blame] | 8 | rev: v3.0.1 |
Jeremy Johnson | 5c1364c | 2022-01-13 15:04:21 +0000 | [diff] [blame] | 9 | hooks: |
| 10 | - id: reorder-python-imports |
| 11 | |
| 12 | - repo: https://github.com/psf/black |
Jeremy Johnson | 5d1a347 | 2022-03-31 09:50:06 +0100 | [diff] [blame] | 13 | rev: 22.3.0 |
Jeremy Johnson | 5c1364c | 2022-01-13 15:04:21 +0000 | [diff] [blame] | 14 | hooks: |
| 15 | - id: black |
| 16 | |
Jeremy Johnson | 5d1a347 | 2022-03-31 09:50:06 +0100 | [diff] [blame] | 17 | - repo: https://github.com/pycqa/flake8 |
| 18 | rev: 4.0.1 |
Jeremy Johnson | 5c1364c | 2022-01-13 15:04:21 +0000 | [diff] [blame] | 19 | hooks: |
| 20 | - id: flake8 |
Jeremy Johnson | 6c6467f | 2022-05-17 15:30:56 +0100 | [diff] [blame] | 21 | |
| 22 | - repo: local |
| 23 | hooks: |
| 24 | - id: pytest |
| 25 | name: pytest |
| 26 | stages: [commit] |
| 27 | language: system |
Jeremy Johnson | 0042343 | 2022-09-12 17:27:37 +0100 | [diff] [blame] | 28 | entry: pytest -m "not postcommit" |
Jeremy Johnson | 6c6467f | 2022-05-17 15:30:56 +0100 | [diff] [blame] | 29 | types: [python] |
| 30 | pass_filenames: false |
Jerry Ge | 9c9c8da | 2023-07-19 23:08:16 +0000 | [diff] [blame] | 31 | |
| 32 | - repo: local |
| 33 | hooks: |
| 34 | - id: clang-format |
| 35 | name: clang-format |
| 36 | exclude: build|third_party |
| 37 | language: system |
| 38 | entry: clang-format |
| 39 | types: ["c++"] |
| 40 | args: ["-i"] |