blob: 9c7070681fef7387dd90635871fee6073b2a8b19 [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:
Jonas Ohlsson845e2322022-03-01 12:39:55 +01003- 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 Russoc82b40c2020-04-22 16:19:26 +010012- repo: https://github.com/asottile/reorder_python_imports
13 rev: v2.2.0
14 hooks:
15 - id: reorder-python-imports
Diego Russoe8a10452020-04-21 17:39:10 +010016
Dwight Lidman2febe7f2020-10-06 12:30:24 +020017- repo: https://github.com/psf/black
Jonas Ohlssond8575072022-03-30 10:30:25 +020018 rev: 22.3.0
Diego Russoc82b40c2020-04-22 16:19:26 +010019 hooks:
20 - id: black
Rickard Bolina8810552022-01-13 12:18:15 +000021 language_version: python3
Diego Russoc82b40c2020-04-22 16:19:26 +010022 args: [--line-length=120]
Diego Russoea6111a2020-04-14 18:41:58 +010023
Diego Russoc82b40c2020-04-22 16:19:26 +010024- repo: https://gitlab.com/pycqa/flake8
Jonas Ohlsson25e700c2022-03-04 14:58:56 +010025 rev: 4.0.1
Diego Russoc82b40c2020-04-22 16:19:26 +010026 hooks:
27 - id: flake8
28 args: [--max-line-length=120, --extend-ignore=E203]
29
Michael McGeagh54018232020-12-03 15:56:13 +000030- 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 Russoc82b40c2020-04-22 16:19:26 +010036- 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 Hall0fc46dc2020-06-15 22:19:07 +010048 name: pytest-cov
Diego Russod0eee262020-04-23 18:14:37 +010049 stages: [push]
Diego Russoc82b40c2020-04-22 16:19:26 +010050 language: system
51 entry: pytest -v --cov=ethosu --cov-fail-under=0
52 types: [python]
53 pass_filenames: false
54 always_run: true