mirror of
https://forge.apps.education.fr/blender-edutech/ropy.git
synced 2024-01-27 08:23:20 +01:00
22 lines
658 B
Python
22 lines
658 B
Python
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"])
|
|
|
|
# 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)
|