From 5375e24e20e41af7154f983c2c9bfc431b6f6242 Mon Sep 17 00:00:00 2001 From: Justin Castilla <59704472+justincastilla@users.noreply.github.com> Date: Tue, 11 Nov 2025 10:10:22 -0800 Subject: [PATCH 1/3] Update pre-commit.yml to remove Python version Removed specific Python version specification. --- .github/workflows/pre-commit.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 1194b963..ec4d9b3a 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -11,6 +11,4 @@ jobs: steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v3 - with: - python-version: '3.13' # or '3.12' - uses: pre-commit/action@v3.0.0 From ff379facd77f63106e1b0a077e481dace8076e04 Mon Sep 17 00:00:00 2001 From: Justin Castilla <59704472+justincastilla@users.noreply.github.com> Date: Tue, 11 Nov 2025 10:10:41 -0800 Subject: [PATCH 2/3] Update black version to 25.11.0 in pre-commit config --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2856f309..301e16c9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,6 +14,6 @@ repos: - --additional-pattern - '_PASSWORD=[0-9a-zA-Z_-]{10}' - repo: https://github.com/ambv/black - rev: 24.1.1 # Use latest tag on GitHub + rev: 25.11.0 # Use latest tag on GitHub hooks: - id: black-jupyter From 06740757dba520f35a4ae5c9c230b513e620420b Mon Sep 17 00:00:00 2001 From: Justin Castilla <59704472+justincastilla@users.noreply.github.com> Date: Tue, 11 Nov 2025 10:17:54 -0800 Subject: [PATCH 3/3] Fix comment formatting in Jupyter notebook --- .../ecommerce_dense_sparse_project.ipynb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/supporting-blog-content/lexical-and-semantic-search-with-elasticsearch/ecommerce_dense_sparse_project.ipynb b/supporting-blog-content/lexical-and-semantic-search-with-elasticsearch/ecommerce_dense_sparse_project.ipynb index b8d8a7b5..93ae1104 100644 --- a/supporting-blog-content/lexical-and-semantic-search-with-elasticsearch/ecommerce_dense_sparse_project.ipynb +++ b/supporting-blog-content/lexical-and-semantic-search-with-elasticsearch/ecommerce_dense_sparse_project.ipynb @@ -1106,8 +1106,7 @@ "metadata": {}, "outputs": [], "source": [ - "\"\"\" Convert search_results from es|ql to a dict with _source\n", - " and subproperties of score, description, category, and product \"\"\"\n", + "# Convert search_results from es|ql to a dict with _source and subproperties of score, description, category, and product\n", "\n", "\n", "def normalize_results(search_results):\n",