Raul Farkas | 50550d6 | 2023-03-20 15:31:43 +0000 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: Copyright 2020-2023 Arm Limited and/or its affiliates <open-source-office@arm.com> |
| 2 | |
| 3 | # SPDX-License-Identifier: Apache-2.0 |
| 4 | |
| 5 | # Licensed under the Apache License, Version 2.0 (the License); you may |
| 6 | # not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | |
| 9 | # www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an AS IS BASIS, WITHOUT |
| 13 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | |
Patrik Gustavsson | 8f1f9aa | 2021-06-28 07:41:58 +0200 | [diff] [blame] | 17 | exclude: '^ethosu/vela/(tflite|ethos_u55_regs|tosa)/' |
Diego Russo | ea6111a | 2020-04-14 18:41:58 +0100 | [diff] [blame] | 18 | repos: |
Jonas Ohlsson | 845e232 | 2022-03-01 12:39:55 +0100 | [diff] [blame] | 19 | - repo: https://github.com/pre-commit/mirrors-mypy |
| 20 | rev: 'v0.931' |
| 21 | hooks: |
| 22 | - id: mypy |
| 23 | args: ["--no-strict-optional", "--show-error-codes", "--ignore-missing-imports"] |
| 24 | require_serial: true |
| 25 | additional_dependencies: [types-setuptools] |
| 26 | minimum_pre_commit_version: '2.9.2' |
| 27 | |
Diego Russo | c82b40c | 2020-04-22 16:19:26 +0100 | [diff] [blame] | 28 | - repo: https://github.com/asottile/reorder_python_imports |
| 29 | rev: v2.2.0 |
| 30 | hooks: |
| 31 | - id: reorder-python-imports |
Diego Russo | e8a1045 | 2020-04-21 17:39:10 +0100 | [diff] [blame] | 32 | |
Dwight Lidman | 2febe7f | 2020-10-06 12:30:24 +0200 | [diff] [blame] | 33 | - repo: https://github.com/psf/black |
Jonas Ohlsson | d857507 | 2022-03-30 10:30:25 +0200 | [diff] [blame] | 34 | rev: 22.3.0 |
Diego Russo | c82b40c | 2020-04-22 16:19:26 +0100 | [diff] [blame] | 35 | hooks: |
| 36 | - id: black |
Rickard Bolin | a881055 | 2022-01-13 12:18:15 +0000 | [diff] [blame] | 37 | language_version: python3 |
Diego Russo | c82b40c | 2020-04-22 16:19:26 +0100 | [diff] [blame] | 38 | args: [--line-length=120] |
Diego Russo | ea6111a | 2020-04-14 18:41:58 +0100 | [diff] [blame] | 39 | |
Rickard Bolin | 16da6ab | 2022-11-15 12:56:57 +0000 | [diff] [blame] | 40 | - repo: https://github.com/pycqa/flake8 |
Jonas Ohlsson | 25e700c | 2022-03-04 14:58:56 +0100 | [diff] [blame] | 41 | rev: 4.0.1 |
Diego Russo | c82b40c | 2020-04-22 16:19:26 +0100 | [diff] [blame] | 42 | hooks: |
| 43 | - id: flake8 |
| 44 | args: [--max-line-length=120, --extend-ignore=E203] |
| 45 | |
Tim Hall | 6a7fd3d | 2023-09-29 12:04:57 +0100 | [diff] [blame] | 46 | - repo: https://github.com/pylint-dev/pylint |
| 47 | rev: v2.13.9 |
Michael McGeagh | 5401823 | 2020-12-03 15:56:13 +0000 | [diff] [blame] | 48 | hooks: |
| 49 | - id: pylint |
| 50 | args: [--score=no, --max-line-length=120, --disable=all, --enable=W0102] |
| 51 | |
Diego Russo | c82b40c | 2020-04-22 16:19:26 +0100 | [diff] [blame] | 52 | - repo: local |
| 53 | hooks: |
| 54 | - id: pytest |
| 55 | name: pytest |
| 56 | stages: [commit] |
| 57 | language: system |
Tim Hall | 762d3ac | 2023-07-06 11:42:02 +0100 | [diff] [blame] | 58 | entry: pytest -s -v |
Diego Russo | c82b40c | 2020-04-22 16:19:26 +0100 | [diff] [blame] | 59 | types: [python] |
| 60 | pass_filenames: false |
| 61 | always_run: true |
| 62 | |
| 63 | - id: pytest-cov |
Tim Hall | 0fc46dc | 2020-06-15 22:19:07 +0100 | [diff] [blame] | 64 | name: pytest-cov |
Diego Russo | d0eee26 | 2020-04-23 18:14:37 +0100 | [diff] [blame] | 65 | stages: [push] |
Diego Russo | c82b40c | 2020-04-22 16:19:26 +0100 | [diff] [blame] | 66 | language: system |
| 67 | entry: pytest -v --cov=ethosu --cov-fail-under=0 |
| 68 | types: [python] |
| 69 | pass_filenames: false |
| 70 | always_run: true |