Patrik Gustavsson | 8f1f9aa | 2021-06-28 07:41:58 +0200 | [diff] [blame] | 1 | exclude: '^ethosu/vela/(tflite|ethos_u55_regs|tosa)/' |
Diego Russo | ea6111a | 2020-04-14 18:41:58 +0100 | [diff] [blame] | 2 | repos: |
Jonas Ohlsson | 845e232 | 2022-03-01 12:39:55 +0100 | [diff] [blame] | 3 | - repo: https://github.com/pre-commit/mirrors-mypy |
| 4 | rev: 'v0.931' |
| 5 | hooks: |
| 6 | - id: mypy |
| 7 | args: ["--no-strict-optional", "--show-error-codes", "--ignore-missing-imports"] |
| 8 | require_serial: true |
| 9 | additional_dependencies: [types-setuptools] |
| 10 | minimum_pre_commit_version: '2.9.2' |
| 11 | |
Diego Russo | c82b40c | 2020-04-22 16:19:26 +0100 | [diff] [blame] | 12 | - repo: https://github.com/asottile/reorder_python_imports |
| 13 | rev: v2.2.0 |
| 14 | hooks: |
| 15 | - id: reorder-python-imports |
Diego Russo | e8a1045 | 2020-04-21 17:39:10 +0100 | [diff] [blame] | 16 | |
Dwight Lidman | 2febe7f | 2020-10-06 12:30:24 +0200 | [diff] [blame] | 17 | - repo: https://github.com/psf/black |
Jonas Ohlsson | d857507 | 2022-03-30 10:30:25 +0200 | [diff] [blame] | 18 | rev: 22.3.0 |
Diego Russo | c82b40c | 2020-04-22 16:19:26 +0100 | [diff] [blame] | 19 | hooks: |
| 20 | - id: black |
Rickard Bolin | a881055 | 2022-01-13 12:18:15 +0000 | [diff] [blame] | 21 | language_version: python3 |
Diego Russo | c82b40c | 2020-04-22 16:19:26 +0100 | [diff] [blame] | 22 | args: [--line-length=120] |
Diego Russo | ea6111a | 2020-04-14 18:41:58 +0100 | [diff] [blame] | 23 | |
Rickard Bolin | 16da6ab | 2022-11-15 12:56:57 +0000 | [diff] [blame] | 24 | - repo: https://github.com/pycqa/flake8 |
Jonas Ohlsson | 25e700c | 2022-03-04 14:58:56 +0100 | [diff] [blame] | 25 | rev: 4.0.1 |
Diego Russo | c82b40c | 2020-04-22 16:19:26 +0100 | [diff] [blame] | 26 | hooks: |
| 27 | - id: flake8 |
| 28 | args: [--max-line-length=120, --extend-ignore=E203] |
| 29 | |
Michael McGeagh | 5401823 | 2020-12-03 15:56:13 +0000 | [diff] [blame] | 30 | - repo: https://github.com/pre-commit/mirrors-pylint |
| 31 | rev: v2.6.0 |
| 32 | hooks: |
| 33 | - id: pylint |
| 34 | args: [--score=no, --max-line-length=120, --disable=all, --enable=W0102] |
| 35 | |
Diego Russo | c82b40c | 2020-04-22 16:19:26 +0100 | [diff] [blame] | 36 | - repo: local |
| 37 | hooks: |
| 38 | - id: pytest |
| 39 | name: pytest |
| 40 | stages: [commit] |
| 41 | language: system |
| 42 | entry: pytest -s -v . |
| 43 | types: [python] |
| 44 | pass_filenames: false |
| 45 | always_run: true |
| 46 | |
| 47 | - id: pytest-cov |
Tim Hall | 0fc46dc | 2020-06-15 22:19:07 +0100 | [diff] [blame] | 48 | name: pytest-cov |
Diego Russo | d0eee26 | 2020-04-23 18:14:37 +0100 | [diff] [blame] | 49 | stages: [push] |
Diego Russo | c82b40c | 2020-04-22 16:19:26 +0100 | [diff] [blame] | 50 | language: system |
| 51 | entry: pytest -v --cov=ethosu --cov-fail-under=0 |
| 52 | types: [python] |
| 53 | pass_filenames: false |
| 54 | always_run: true |