This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a commit to branch asf-staging
in repository https://gitbox.apache.org/repos/asf/hamilton.git


The following commit(s) were added to refs/heads/asf-staging by this push:
     new f874abf7 Deploy documentation from 
7d390d6bf7942f001cf35a733637c947dbb61588
f874abf7 is described below

commit f874abf7e767c2e42b4c903d420ec92df57749ba
Author: GitHub Actions <[email protected]>
AuthorDate: Thu Feb 5 07:20:08 2026 +0000

    Deploy documentation from 7d390d6bf7942f001cf35a733637c947dbb61588
---
 content/_sources/how-tos/pre-commit-hooks.md.txt |  12 ++++++------
 content/_static/Hamilton.pdf                     | Bin 10349562 -> 10349511 
bytes
 content/how-tos/pre-commit-hooks/index.html      |  12 ++++++------
 content/searchindex.js                           |   2 +-
 4 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/content/_sources/how-tos/pre-commit-hooks.md.txt 
b/content/_sources/how-tos/pre-commit-hooks.md.txt
index 7c620f6b..2f61a1b6 100644
--- a/content/_sources/how-tos/pre-commit-hooks.md.txt
+++ b/content/_sources/how-tos/pre-commit-hooks.md.txt
@@ -30,12 +30,12 @@ Note that it's different from testing, which focuses on the 
behavior of the code
 ## Add pre-commit hooks to your project
 Hooks are a mechanism of the `git` version control system. You can find your 
project's hooks under the `.git/hooks` directory (it might be hidden by 
default). There should be many files with the `.sample` extension that serve as 
example scripts.
 
-The preferred way of working with pre-commit hooks is through the 
[pre-commit](https://pre-commit.com/) Python library. This library allows you 
to import and configure hooks for your repository with a 
`.pre-commit-config.yaml` file.
+The preferred way of working with pre-commit hooks is through the 
[prek](https://github.com/j178/prek/) library. This library allows you to 
import and configure hooks for your repository with a `.pre-commit-config.yaml` 
file.
 
 ### Steps to get started
-1. install the pre-commit library
+1. install the prek library
     ```python
-    pip install pre-commit
+    pip install prek
     ```
 
 2. add a `.pre-commit-config.yaml` to your repository
@@ -44,7 +44,7 @@ The preferred way of working with pre-commit hooks is through 
the [pre-commit](h
     repos:
         # repository with hook definitions
     -   repo: https://github.com/pre-commit/pre-commit-hooks
-        rev: v2.3.0  # release version of the repo
+        rev: v6.0.0  # release version of the repo
         hooks:  # list of hooks from the repo to include in this project
         -   id: end-of-file-fixer
         -   id: trailing-whitespace
@@ -60,13 +60,13 @@ The preferred way of working with pre-commit hooks is 
through the [pre-commit](h
 
 3. install the hooks defined in `.pre-commit-config.yaml`
     ```console
-    pre-commit install
+    prek install
     ```
     Now, hooks will automatically run on `git commit`
 
 4. to manually run hooks
     ```console
-    pre-commit run --all-files
+    prek run --all-files
     ```
 
 ## Custom Apache Hamilton pre-commit hooks
diff --git a/content/_static/Hamilton.pdf b/content/_static/Hamilton.pdf
index 142f646b..b7969229 100644
Binary files a/content/_static/Hamilton.pdf and b/content/_static/Hamilton.pdf 
differ
diff --git a/content/how-tos/pre-commit-hooks/index.html 
b/content/how-tos/pre-commit-hooks/index.html
index 3a4e9e51..22118a56 100644
--- a/content/how-tos/pre-commit-hooks/index.html
+++ b/content/how-tos/pre-commit-hooks/index.html
@@ -529,12 +529,12 @@ under the License.
 <section id="add-pre-commit-hooks-to-your-project">
 <h2>Add pre-commit hooks to your project<a class="headerlink" 
href="#add-pre-commit-hooks-to-your-project" title="Link to this 
heading">¶</a></h2>
 <p>Hooks are a mechanism of the <code class="docutils literal 
notranslate"><span class="pre">git</span></code> version control system. You 
can find your project’s hooks under the <code class="docutils literal 
notranslate"><span class="pre">.git/hooks</span></code> directory (it might be 
hidden by default). There should be many files with the <code class="docutils 
literal notranslate"><span class="pre">.sample</span></code> extension that 
serve as example scripts.</p>
-<p>The preferred way of working with pre-commit hooks is through the <a 
class="reference external" href="https://pre-commit.com/";>pre-commit</a> Python 
library. This library allows you to import and configure hooks for your 
repository with a <code class="docutils literal notranslate"><span 
class="pre">.pre-commit-config.yaml</span></code> file.</p>
+<p>The preferred way of working with pre-commit hooks is through the <a 
class="reference external" href="https://github.com/j178/prek/";>prek</a> 
library. This library allows you to import and configure hooks for your 
repository with a <code class="docutils literal notranslate"><span 
class="pre">.pre-commit-config.yaml</span></code> file.</p>
 <section id="steps-to-get-started">
 <h3>Steps to get started<a class="headerlink" href="#steps-to-get-started" 
title="Link to this heading">¶</a></h3>
 <ol class="arabic">
-<li><p>install the pre-commit library</p>
-<div class="highlight-python notranslate"><div 
class="highlight"><pre><span></span><span class="n">pip</span> <span 
class="n">install</span> <span class="n">pre</span><span 
class="o">-</span><span class="n">commit</span>
+<li><p>install the prek library</p>
+<div class="highlight-python notranslate"><div 
class="highlight"><pre><span></span><span class="n">pip</span> <span 
class="n">install</span> <span class="n">prek</span>
 </pre></div>
 </div>
 </li>
@@ -543,7 +543,7 @@ under the License.
 <span class="nt">repos</span><span class="p">:</span>
 <span class="w">    </span><span class="c1"># repository with hook 
definitions</span>
 <span class="p p-Indicator">-</span><span class="w">   </span><span 
class="nt">repo</span><span class="p">:</span><span class="w"> </span><span 
class="l l-Scalar 
l-Scalar-Plain">https://github.com/pre-commit/pre-commit-hooks</span>
-<span class="w">    </span><span class="nt">rev</span><span 
class="p">:</span><span class="w"> </span><span class="l l-Scalar 
l-Scalar-Plain">v2.3.0</span><span class="w">  </span><span class="c1"># 
release version of the repo</span>
+<span class="w">    </span><span class="nt">rev</span><span 
class="p">:</span><span class="w"> </span><span class="l l-Scalar 
l-Scalar-Plain">v6.0.0</span><span class="w">  </span><span class="c1"># 
release version of the repo</span>
 <span class="w">    </span><span class="nt">hooks</span><span 
class="p">:</span><span class="w">  </span><span class="c1"># list of hooks 
from the repo to include in this project</span>
 <span class="w">    </span><span class="p p-Indicator">-</span><span 
class="w">   </span><span class="nt">id</span><span class="p">:</span><span 
class="w"> </span><span class="l l-Scalar 
l-Scalar-Plain">end-of-file-fixer</span>
 <span class="w">    </span><span class="p p-Indicator">-</span><span 
class="w">   </span><span class="nt">id</span><span class="p">:</span><span 
class="w"> </span><span class="l l-Scalar 
l-Scalar-Plain">trailing-whitespace</span>
@@ -559,13 +559,13 @@ under the License.
 </div>
 </li>
 <li><p>install the hooks defined in <code class="docutils literal 
notranslate"><span class="pre">.pre-commit-config.yaml</span></code></p>
-<div class="highlight-console notranslate"><div 
class="highlight"><pre><span></span><span class="go">pre-commit install</span>
+<div class="highlight-console notranslate"><div 
class="highlight"><pre><span></span><span class="go">prek install</span>
 </pre></div>
 </div>
 <p>Now, hooks will automatically run on <code class="docutils literal 
notranslate"><span class="pre">git</span> <span 
class="pre">commit</span></code></p>
 </li>
 <li><p>to manually run hooks</p>
-<div class="highlight-console notranslate"><div 
class="highlight"><pre><span></span><span class="go">pre-commit run 
--all-files</span>
+<div class="highlight-console notranslate"><div 
class="highlight"><pre><span></span><span class="go">prek run --all-files</span>
 </pre></div>
 </div>
 </li>
diff --git a/content/searchindex.js b/content/searchindex.js
index ff5d1383..94a46d9c 100644
--- a/content/searchindex.js
+++ b/content/searchindex.js
@@ -1 +1 @@
-Search.setIndex({"alltitles":{".with_cache() to specify caching 
behavior":[[41,"with-cache-to-specify-caching-behavior"]],"1 - Dynamically 
create modules within your 
notebook":[[54,"dynamically-create-modules-within-your-notebook"]],"1. Define 
steps":[[4,"define-steps"]],"1. Hard to read UI and data 
flows.":[[62,"hard-to-read-ui-and-data-flows"]],"1. Importing the 
extension":[[43,"importing-the-extension"]],"1. 
Programmatically":[[43,"programmatically"]],"1. Test your FastAPI application 
[...]
\ No newline at end of file
+Search.setIndex({"alltitles":{".with_cache() to specify caching 
behavior":[[41,"with-cache-to-specify-caching-behavior"]],"1 - Dynamically 
create modules within your 
notebook":[[54,"dynamically-create-modules-within-your-notebook"]],"1. Define 
steps":[[4,"define-steps"]],"1. Hard to read UI and data 
flows.":[[62,"hard-to-read-ui-and-data-flows"]],"1. Importing the 
extension":[[43,"importing-the-extension"]],"1. 
Programmatically":[[43,"programmatically"]],"1. Test your FastAPI application 
[...]
\ No newline at end of file

Reply via email to