Diego Russo | ea6111a | 2020-04-14 18:41:58 +0100 | [diff] [blame] | 1 | exclude: '^ethosu/vela/(tflite|ethos_u55_regs)/' |
| 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 | |
Diego Russo | c82b40c | 2020-04-22 16:19:26 +0100 | [diff] [blame] | 8 | - repo: https://github.com/ambv/black |
| 9 | rev: stable |
| 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 | |
| 21 | - repo: local |
| 22 | hooks: |
| 23 | - id: pytest |
| 24 | name: pytest |
| 25 | stages: [commit] |
| 26 | language: system |
| 27 | entry: pytest -s -v . |
| 28 | types: [python] |
| 29 | pass_filenames: false |
| 30 | always_run: true |
| 31 | |
| 32 | - id: pytest-cov |
| 33 | name: pytest |
Diego Russo | d0eee26 | 2020-04-23 18:14:37 +0100 | [diff] [blame] | 34 | stages: [push] |
Diego Russo | c82b40c | 2020-04-22 16:19:26 +0100 | [diff] [blame] | 35 | language: system |
| 36 | entry: pytest -v --cov=ethosu --cov-fail-under=0 |
| 37 | types: [python] |
| 38 | pass_filenames: false |
| 39 | always_run: true |