OLD | NEW |
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 | 1 # 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 | 2 # 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 | 3 # Foundation; either version 2 of the License, or (at your option) any later |
7 # version. | 4 # version. |
8 # | 5 # |
9 # This program is distributed in the hope that it will be useful, but WITHOUT | 6 # 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 | 7 # 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 | 8 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details |
12 # | 9 # |
13 # You should have received a copy of the GNU General Public License along with | 10 # 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., | 11 # this program; if not, write to the Free Software Foundation, Inc., |
15 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 12 # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
16 import sys | 13 """ Copyright (c) 2002-2008 LOGILAB S.A. (Paris, FRANCE). |
| 14 http://www.logilab.fr/ -- mailto:contact@logilab.fr |
| 15 """ |
17 | 16 |
18 def run_pylint(): | |
19 """run pylint""" | |
20 from pylint.lint import Run | |
21 Run(sys.argv[1:]) | |
22 | |
23 def run_pylint_gui(): | |
24 """run pylint-gui""" | |
25 try: | |
26 from pylint.gui import Run | |
27 Run(sys.argv[1:]) | |
28 except ImportError: | |
29 sys.exit('tkinter is not available') | |
30 | |
31 def run_epylint(): | |
32 """run pylint""" | |
33 from pylint.epylint import Run | |
34 Run() | |
35 | |
36 def run_pyreverse(): | |
37 """run pyreverse""" | |
38 from pylint.pyreverse.main import Run | |
39 Run(sys.argv[1:]) | |
40 | |
41 def run_symilar(): | |
42 """run symilar""" | |
43 from pylint.checkers.similar import Run | |
44 Run(sys.argv[1:]) | |
OLD | NEW |