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