blob: 17d38779b079ff5e889c8f21b485a76ce249bfd1 [file] [log] [blame]
Patrik Gustavsson8f1f9aa2021-06-28 07:41:58 +02001exclude: '^ethosu/vela/(tflite|ethos_u55_regs|tosa)/'
Diego Russoea6111a2020-04-14 18:41:58 +01002repos:
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
Dwight Lidman2febe7f2020-10-06 12:30:24 +02008- repo: https://github.com/psf/black
9 rev: 19.10b0
Diego Russoc82b40c2020-04-22 16:19:26 +010010 hooks:
11 - id: black
Rickard Bolina8810552022-01-13 12:18:15 +000012 language_version: python3
Diego Russoc82b40c2020-04-22 16:19:26 +010013 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
Michael McGeagh54018232020-12-03 15:56:13 +000021- 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 Russoc82b40c2020-04-22 16:19:26 +010027- 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 Hall0fc46dc2020-06-15 22:19:07 +010039 name: pytest-cov
Diego Russod0eee262020-04-23 18:14:37 +010040 stages: [push]
Diego Russoc82b40c2020-04-22 16:19:26 +010041 language: system
42 entry: pytest -v --cov=ethosu --cov-fail-under=0
43 types: [python]
44 pass_filenames: false
45 always_run: true