 <code>sql-formatter</code> as a hook to your <code>pre-commit</code> configuration to format your SQL files before commit, just add the following lines to your <code>.pre-commit-config.yaml</code>:</p>
<div class="highlight"><pre><span></span><span class="nt">repos</span><span class="p">:</span>
  <span class="p p-Indicator">-</span> <span class="nt">repo</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">https://github.com/PabloRMira/sql_formatter</span>
    <span class="nt">rev</span>