blob: 67e60dab2dd75f3348d95460fb5f54ded0d6700c [file] [log] [blame]
Dmitrii Agibov2936f132024-01-02 15:41:01 +00001# Copyright (c) 2021-2024 Arm Limited.
Jeremy Johnson5c1364c2022-01-13 15:04:21 +00002# 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
6repos:
7- repo: https://github.com/asottile/reorder_python_imports
Jeremy Johnson5d1a3472022-03-31 09:50:06 +01008 rev: v3.0.1
Jeremy Johnson5c1364c2022-01-13 15:04:21 +00009 hooks:
10 - id: reorder-python-imports
11
12- repo: https://github.com/psf/black
Jeremy Johnson5d1a3472022-03-31 09:50:06 +010013 rev: 22.3.0
Jeremy Johnson5c1364c2022-01-13 15:04:21 +000014 hooks:
15 - id: black
16
Jeremy Johnson5d1a3472022-03-31 09:50:06 +010017- repo: https://github.com/pycqa/flake8
18 rev: 4.0.1
Jeremy Johnson5c1364c2022-01-13 15:04:21 +000019 hooks:
20 - id: flake8
Jeremy Johnson6c6467f2022-05-17 15:30:56 +010021
22- repo: local
23 hooks:
24 - id: pytest
25 name: pytest
26 stages: [commit]
27 language: system
Jeremy Johnson00423432022-09-12 17:27:37 +010028 entry: pytest -m "not postcommit"
Jeremy Johnson6c6467f2022-05-17 15:30:56 +010029 types: [python]
30 pass_filenames: false
Jerry Ge9c9c8da2023-07-19 23:08:16 +000031
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++"]
Eric Kunze99f8f9f2023-09-07 01:36:07 +000040 args: ["-i"]