# along with Phoseg. If not, see <http://www.gnu.org/licenses/>. ################################################################################ """ ❏Phoseg❏ pylint_tests.py """ import os import re from projects_files import getAllFilenames from console import CONSOLE CONSOLE.useTheColor("cyan") CONSOLE.writeln("="*80) CONSOLE.writeln("TEST : pylint_test.py") CONSOLE.writeln("="*80) CONSOLE.useTheDefaultColor() COMMANDSTRING = "pylint --rcfile=pylint.rc {0} > z" NBR_FILES = 0 WORST_MARK = 10 with open("pylint.output","w") as dest: for filename in getAllFilenames(only_py_files=True): if not os.path.exists(filename): raise Exception("Unknown file : "+str(filename)) dest.write("="*80 + "\n") dest.write(filename + "\n")