Added a better way to delete users. Catched the exception for perm_list.
[e_cidadania.git] / tests / pep.py
blob5e326c5c40867dc66c15850092d471248042a875
1 #/usr/bin/env python
2 # -*- coding: utf-8 -*-
4 # Copyright (c) 2010-2012 Cidadania S. Coop. Galega
6 # This file is part of e-cidadania.
8 # e-cidadania is free software: you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation, either version 3 of the License, or
11 # (at your option) any later version.
13 # e-cidadania is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with e-cidadania. If not, see <http://www.gnu.org/licenses/>.
21 import pep8
23 import sys
26 def run_pep():
27 """Runs pep on the module or package supplied via command line.
29 Usage: bin/python tests/pep.py [options] path_to_module_or_package
31 If you want to see full set of command line options offered by
32 pep, pass --help.
34 """
36 args = [
37 '--show-source',
38 '--show-pep8',
39 '--ignore=W291'
42 sys.argv.extend(args)
43 pep8._main()
46 if __name__=='__main__':
47 run_pep()