Statistics
| Revision:

gvsig-scripting / org.gvsig.scripting / trunk / org.gvsig.scripting / org.gvsig.scripting.app / org.gvsig.scripting.app.mainplugin / src / main / resources-plugin / scripting / lib / pylint / __init__.py @ 745

History | View | Annotate | Download (1.42 KB)

1
# Copyright (c) 2003-2012 LOGILAB S.A. (Paris, FRANCE).
2
# http://www.logilab.fr/ -- mailto:contact@logilab.fr
3
#
4
# This program is free software; you can redistribute it and/or modify it under
5
# the terms of the GNU General Public License as published by the Free Software
6
# Foundation; either version 2 of the License, or (at your option) any later
7
# version.
8
#
9
# This program is distributed in the hope that it will be useful, but WITHOUT
10
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details
12
#
13
# You should have received a copy of the GNU General Public License along with
14
# this program; if not, write to the Free Software Foundation, Inc.,
15
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16
import sys
17

    
18
from .__pkginfo__ import version as __version__
19

    
20
def run_pylint():
21
    """run pylint"""
22
    from pylint.lint import Run
23
    Run(sys.argv[1:])
24

    
25
def run_pylint_gui():
26
    """run pylint-gui"""
27
    try:
28
        from pylint.gui import Run
29
        Run(sys.argv[1:])
30
    except ImportError:
31
        sys.exit('tkinter is not available')
32

    
33
def run_epylint():
34
    """run pylint"""
35
    from pylint.epylint import Run
36
    Run()
37

    
38
def run_pyreverse():
39
    """run pyreverse"""
40
    from pylint.pyreverse.main import Run
41
    Run(sys.argv[1:])
42

    
43
def run_symilar():
44
    """run symilar"""
45
    from pylint.checkers.similar import Run
46
    Run(sys.argv[1:])