title: How to avoid conflicts between pylint and pycodestyle about indentation style
body: <p>I have some python code that I run through <code>pylint</code> and that I decided to also run through <code>pycodestyle</code>.</p>
  
  <p>To avoid long lines in a with statement, I do the following:</p>
  
  <pre><code>with my_context_manager(
      argument1,
      argument2) as something:
      rest_of_my_code
  </code></pre>
  
  <p>But <code>pycodestyle</code> tells me that</p>
  
  <pre class="lang-none prettyprint-override"><code>E125 continuation line with same indent as next logical line
  </code></pre>
  
  <p>So I indent this further, as follows:</p>
  
  <pre><code>with my_context_manager(
          argument1,
          argument2) as something:
      rest_of_my_code
  </code></pre>
  
  <p>But now <code>pylint</code> tells me:</p>
  
  <pre class="lang-none prettyprint-override"><code>Wrong hanging indentation (remove 4 spaces).
  </code></pre>
  
  <p>Is there a better solution that would satisfy both code quality checkers?</p>
  
  <hr>
  
  <p><strong>Note 1</strong></p>
  
  <p>The following raises no complaints from either of the two style checkers provided that the lines are not too long (which unfortunately is not always the case):</p>
  
  <pre><code>with my_context_manager(argument1,
                          argument2) as something:
      rest_of_my_code
  </code></pre>
  
  <p><strong>Note 2</strong></p>
  
  <p>To answer comments, I tried the following:</p>
  
  <pre><code>with my_context_manager(
      argument1,
      argument2) as something:
          rest_of_my_code
  </code></pre>
  
  <p>Strangely <code>pycodestyle</code> still says <code>E125 continuation line with same indent as next logical line</code> about the same line as previously (the one with <code>argument2</code>).</p>