title: How to fix the YAML syntax error: did not find expected '-' indicator while parsing a block?
body: <p>I have some code written in my <code>.travis.yml</code> written for a Python library. Using <a href="http://lint.travis-ci.org/" rel="noreferrer">lint.travis-ci.org</a>, I came to know that there is some indentation problem in my YAML file. Here is the part which the error points to</p>
  
  <pre><code>install:
  
    - if [[ "${TEST_PY3}" == "false" ]]; then
        pip install Cython;
        python setup.py build; # To build networkx-metis
        mkdir core; # For the installation of networkx core
        cd core;
        git clone https://github.com/orkohunter/networkx.git;
        cd networkx/;
        git checkout addons;
        python setup.py install;
        cd ..;
      fi
  </code></pre>
  
  <p>Where am I wrong? The error says </p>
  
  <pre><code>syntax error: (&lt;unknown&gt;): did not find expected '-' indicator while parsing a block collection at line 32 column 3
  </code></pre>
  
  <p>It would be great if there were a tool like <code>autopep8</code> to fix the indentation of YAML files. </p>