mirror of
https://forge.apps.education.fr/blender-edutech/jumeaux-numeriques.git
synced 2024-01-27 06:56:18 +01:00
22 lines
660 B
Python
22 lines
660 B
Python
import sys
|
|
from pylint import run_pylint
|
|
|
|
###############################################################################
|
|
# twin_pylint.py
|
|
# @title: Mesure de la qualité d'un code Python
|
|
# @project: Ropy (Blender-EduTech)
|
|
# @lang: fr
|
|
# @authors: Philippe Roy <philippe.roy@ac-grenoble.fr>
|
|
# @copyright: Copyright (C) 2024 Philippe Roy
|
|
# @license: GNU GPL
|
|
###############################################################################
|
|
|
|
# print (sys.argv[0])
|
|
# print (sys.argv[1])
|
|
# run_pylint(argv=["--version"])
|
|
|
|
# Détection des erreurs
|
|
run_pylint(argv=["--errors-only", sys.argv[1]])
|
|
# run_pylint(argv=["--disable=line-too-long", sys.argv[1]])
|
|
sys.exit(0)
|