title: `pylint`: how do you enable errors for tabs or spaces indentation?
body: <p>I am trying to enforce some simple python formatting rules. I found <code>pylint</code> and I have been very happy. However one of the more simple formatting checks I need to enforce is: tabs-only or spaces-only indentation.</p>
  
  <p><strong>In <code>pylint</code>, how do you enable errors or warnings for tabs or spaces indentation?</strong></p>
  
  <p>I see that <code>pylint</code> has <a href="http://pylint-messages.wikidot.com/messages:w0311" rel="nofollow noreferrer"><code>w0311</code> "Used when an unexpected number of indentation's tabulations or spaces has been found"</a>. But <code>w0311</code> does not enforce tabs-only or spaces-only... it still supports tabs or spaces. </p>
  
  <p>I need all my python files to be only one type of indentation.</p>
  
  <p>(</p>
  
  <p>p.s. If you are curious how I use <code>pylint</code> to enforce my rules. I have a shell script that runs <code>pylint</code> and I use <code>set -o errexit</code> and this is hooked in with the build. So if <code>pylint</code> finds something it exits with nonzero value and causes the build to fail.</p>
  
  <p>)</p>