mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Add at least a check to detect epic python errors
This commit is contained in:
parent
c721aaf258
commit
582a63bc0c
2 changed files with 11 additions and 0 deletions
|
@ -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
|
||||||
|
|
6
tox.ini
6
tox.ini
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue