2023-12-28 06:05:45 +01:00
|
|
|
import sys
|
|
|
|
from pylint import run_pylint
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# rp_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"])
|
2023-12-28 17:00:24 +01:00
|
|
|
|
|
|
|
# Détection des erreurs
|
2023-12-28 06:05:45 +01:00
|
|
|
run_pylint(argv=["--errors-only", sys.argv[1]])
|
|
|
|
# run_pylint(argv=["--disable=line-too-long", sys.argv[1]])
|
|
|
|
sys.exit(0)
|