Add at least a check to detect epic python errors

This commit is contained in:
Alexandre Aubin 2020-05-06 19:45:00 +02:00
parent c721aaf258
commit 582a63bc0c
2 changed files with 11 additions and 0 deletions

View file

@ -117,6 +117,11 @@ lint:
script: script:
- tox -e lint - tox -e lint
invalidcode:
extends: .lint-stage
script:
- tox -e invalidcode
# Disabled, waiting for buster # Disabled, waiting for buster
#format-check: #format-check:
# extends: .lint-stage # extends: .lint-stage

View file

@ -9,6 +9,7 @@ skip_install=True
deps = deps =
pytest >= 4.6.3, < 5.0 pytest >= 4.6.3, < 5.0
pyyaml >= 5.1.2, < 6.0 pyyaml >= 5.1.2, < 6.0
flake8 >= 3.7.9, < 3.8
commands = commands =
pytest {posargs} pytest {posargs}
@ -16,3 +17,8 @@ commands =
skip_install=True skip_install=True
commands = flake8 src doc data tests commands = flake8 src doc data tests
deps = flake8 deps = flake8
[testenv:invalidcode]
skip_install=True
commands = flake8 src data --exclude src/yunohost/tests --select F --ignore F401,F841
deps = flake8