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: |
Diego Russo | c82b40c | 2020-04-22 16:19:26 +0100 | [diff] [blame] | 3 | - repo: https://github.com/asottile/reorder_python_imports |
| 4 | rev: v2.2.0 |
| 5 | hooks: |
| 6 | - id: reorder-python-imports |
Diego Russo | e8a1045 | 2020-04-21 17:39:10 +0100 | [diff] [blame] | 7 | |
Dwight Lidman | 2febe7f | 2020-10-06 12:30:24 +0200 | [diff] [blame] | 8 | - repo: https://github.com/psf/black |
| 9 | rev: 19.10b0 |
Diego Russo | c82b40c | 2020-04-22 16:19:26 +0100 | [diff] [blame] | 10 | hooks: |
| 11 | - id: black |
| 12 | language_version: python3.6 |
| 13 | args: [--line-length=120] |
Diego Russo | ea6111a | 2020-04-14 18:41:58 +0100 | [diff] [blame] | 14 | |
Diego Russo | c82b40c | 2020-04-22 16:19:26 +0100 | [diff] [blame] | 15 | - repo: https://gitlab.com/pycqa/flake8 |
| 16 | rev: 3.7.9 |
| 17 | hooks: |
| 18 | - id: flake8 |
| 19 | args: [--max-line-length=120, --extend-ignore=E203] |
| 20 | |
Michael McGeagh | 5401823 | 2020-12-03 15:56:13 +0000 | [diff] [blame] | 21 | - repo: https://github.com/pre-commit/mirrors-pylint |
| 22 | rev: v2.6.0 |
| 23 | hooks: |
| 24 | - id: pylint |
| 25 | args: [--score=no, --max-line-length=120, --disable=all, --enable=W0102] |
| 26 | |
Diego Russo | c82b40c | 2020-04-22 16:19:26 +0100 | [diff] [blame] | 27 | - repo: local |
| 28 | hooks: |
| 29 | - id: pytest |
| 30 | name: pytest |
| 31 | stages: [commit] |
| 32 | language: system |
| 33 | entry: pytest -s -v . |
| 34 | types: [python] |
| 35 | pass_filenames: false |
| 36 | always_run: true |
| 37 | |
| 38 | - id: pytest-cov |
Tim Hall | 0fc46dc | 2020-06-15 22:19:07 +0100 | [diff] [blame] | 39 | name: pytest-cov |
Diego Russo | d0eee26 | 2020-04-23 18:14:37 +0100 | [diff] [blame] | 40 | stages: [push] |
Diego Russo | c82b40c | 2020-04-22 16:19:26 +0100 | [diff] [blame] | 41 | language: system |
| 42 | entry: pytest -v --cov=ethosu --cov-fail-under=0 |
| 43 | types: [python] |
| 44 | pass_filenames: false |
| 45 | always_run: true |