Skip to content

Commit c9d4b99

Browse files
committed
Clean up some markup
1 parent b8a9ec6 commit c9d4b99

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

Diff for: index.mako

+5-7
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@
281281
<h3>Arguments Pattern in hooks</h3>
282282
<p>If you are writing your own custom hook as a <code>script</code>-type or even a <code>system</code> hook, your hook should expect to receive the <code>args</code> value and then a list of staged files.</p>
283283

284-
<p>For example, assuming your <code>.pre-commit-config.yaml</code> was like below</p>
284+
<p>For example, assuming a <code>.pre-commit-config.yaml</code>:</p>
285285
<pre>
286286
- repo: git://github.com/path/to/your/hook/repo
287287
sha: badf00ddeadbeef
@@ -290,13 +290,11 @@
290290
args: [--myarg1=1, --myarg1=2]
291291
</pre>
292292

293-
<p>When you next run <code>pre-commit</code>, it will pass on those args as follows:</p>
294-
<pre>
295-
path/to/script-or-system-call --myarg1=1 --myarg1=2 dir/file1 dir/file2 file3
296-
</pre>
293+
<p>When you next run <code>pre-commit</code>, your script will be called:</p>
294+
<pre>path/to/script-or-system-exe --myarg1=1 --myarg1=2 dir/file1 dir/file2 file3</pre>
297295

298-
<p>If the <code>args</code> property is empty or not defined, you should expect your script to be called:</p>
299-
<pre> path/to/script-or-system-call dir/file1 dir/file2 file3 </pre>
296+
<p>If the <code>args</code> property is empty or not defined, your script will be called:</p>
297+
<pre>path/to/script-or-system-exe dir/file1 dir/file2 file3</pre>
300298

301299
<h2 id="overriding-language-version">Overriding Language Version</h2>
302300
<p>Sometimes you only want to run the hooks on a specific version of the language. For each language, they default to using the system installed language (So for example if I&rsquo;m running <code>python2.6</code> and a hook specifies <code>python</code>, pre-commit will run the hook using <code>python2.6</code>). Sometimes you don&rsquo;t want the default system installed version so you can override this on a per-hook basis by setting the <code>language_version</code>.</p>

0 commit comments

Comments
 (0)