[katello-devel] Python indenting

Lukas Zapletal lzap at redhat.com
Thu Jul 7 10:48:59 UTC 2011


Hello,

I saw mixed tab stops in our CLI python code. Most of the code use 4 
characters, but there are places with two characters.

I recommend to align with PEP-8 and use 4 characters (not tabs!) If you 
see any code that is not in compliance please fix it (in separate commit 
if possible).

In case you use Vim7 you just need to drop this

setlocal tabstop=4
setlocal softtabstop=4
setlocal shiftwidth=4
setlocal textwidth=80
setlocal smarttab
setlocal expandtab
setlocal nosmartindent

to your ~/.vim/ftplugin/python.vim and you are done.

I will probably add pycheck/pylint in our checkstyle Hudson job later on.

-- 
Later,

  Lukas Zapletal | E32E400A
  RHN Satellite Engineering
  Red Hat Czech s.r.o. Brno




More information about the katello-devel mailing list