blob: 8b930b7969ce11055897f922e3fcfd7a6df0cd1a [file] [log] [blame]
Diego Russoea6111a2020-04-14 18:41:58 +01001exclude: '^ethosu/vela/(tflite|ethos_u55_regs)/'
2repos:
Diego Russoc82b40c2020-04-22 16:19:26 +01003- repo: https://github.com/asottile/reorder_python_imports
4 rev: v2.2.0
5 hooks:
6 - id: reorder-python-imports
Diego Russoe8a10452020-04-21 17:39:10 +01007
Diego Russoc82b40c2020-04-22 16:19:26 +01008- 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 Russoea6111a2020-04-14 18:41:58 +010014
Diego Russoc82b40c2020-04-22 16:19:26 +010015- 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 Russod0eee262020-04-23 18:14:37 +010034 stages: [push]
Diego Russoc82b40c2020-04-22 16:19:26 +010035 language: system
36 entry: pytest -v --cov=ethosu --cov-fail-under=0
37 types: [python]
38 pass_filenames: false
39 always_run: true