blob: b253ddd5d44660245c6e8c9ce1aa02c73b011d97 [file] [log] [blame]
Jeremy Johnson5c1364c2022-01-13 15:04:21 +00001# Copyright (c) 2021-2022 Arm Limited.
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
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