On lint le fichier de tests également

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
Yohann D'ANELLO 2021-01-26 17:11:07 +01:00
parent 1ba9934438
commit 7c2d082cf4
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
3 changed files with 6 additions and 5 deletions

View File

@ -8,7 +8,7 @@ flake8:
image: python:3-alpine image: python:3-alpine
before_script: before_script:
- pip install flake8 --no-cache-dir - pip install flake8 --no-cache-dir
script: flake8 main.py script: flake8 main.py main_test.py
allow_failure: true allow_failure: true
@ -17,7 +17,7 @@ pylint:
image: python:3-alpine image: python:3-alpine
before_script: before_script:
- pip install pylint --no-cache-dir - pip install pylint --no-cache-dir
script: pylint main.py script: pylint main.py main_test.py
allow_failure: true allow_failure: true
@ -26,4 +26,4 @@ test:
image: python:3-alpine image: python:3-alpine
before_script: before_script:
- pip install pytest --no-cache-dir - pip install pytest --no-cache-dir
script: pytest --show-locals . script: pytest --showlocals .

View File

@ -28,6 +28,9 @@ def main():
def commande(name: str, *args): def commande(name: str, *args):
"""
Exécute la commande `name` avec les arguments donnés.
"""
return globals()[name](*args) return globals()[name](*args)

View File

@ -4,8 +4,6 @@
Exécution des tests du script. Exécution des tests du script.
""" """
import unittest
import main import main