Skip to content

Commit 851c187

Browse files
chore: update pre-commit hooks (#135)
* chore: update pre-commit hooks updates: - [github.com/psf/black: 24.4.2 → 24.8.0](psf/black@24.4.2...24.8.0) - [github.com/astral-sh/ruff-pre-commit: v0.5.5 → v0.6.5](astral-sh/ruff-pre-commit@v0.5.5...v0.6.5) - [github.com/abravalheri/validate-pyproject: v0.18 → v0.19](abravalheri/validate-pyproject@v0.18...v0.19) - [github.com/python-jsonschema/check-jsonschema: 0.29.1 → 0.29.2](python-jsonschema/check-jsonschema@0.29.1...0.29.2) * style: pre-commit fixes --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent dacb129 commit 851c187

5 files changed

+6
-11
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repos:
2121
# - slideshow
2222
# - --
2323
- repo: https://github.com/psf/black
24-
rev: 24.4.2
24+
rev: 24.8.0
2525
hooks:
2626
- id: black
2727
- id: black-jupyter
@@ -50,14 +50,14 @@ repos:
5050
- id: rst-inline-touching-normal
5151

5252
- repo: https://github.com/astral-sh/ruff-pre-commit
53-
rev: "v0.5.5"
53+
rev: "v0.6.5"
5454
hooks:
5555
- id: ruff
5656
args: ["--fix", "--show-fixes"]
5757
- id: ruff-format
5858

5959
- repo: https://github.com/abravalheri/validate-pyproject
60-
rev: "v0.18"
60+
rev: "v0.19"
6161
hooks:
6262
- id: validate-pyproject
6363
additional_dependencies: ["validate-pyproject-schema-store[all]"]
@@ -76,7 +76,7 @@ repos:
7676
args: ["-L", "precessing"]
7777

7878
- repo: https://github.com/python-jsonschema/check-jsonschema
79-
rev: "0.29.1"
79+
rev: "0.29.2"
8080
hooks:
8181
- id: check-dependabot
8282
- id: check-github-workflows

SciPy2024/module1/1-introduction-to-language-models.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
"metadata": {},
102102
"outputs": [],
103103
"source": [
104-
"from collections import Counter, defaultdict\n",
104+
"from collections import defaultdict\n",
105105
"import nltk\n",
106106
"import random\n",
107107
"import re\n",
@@ -674,7 +674,6 @@
674674
" sentence_finished = False\n",
675675
"\n",
676676
" while not sentence_finished:\n",
677-
"\n",
678677
" # Randomly pick a word from model given the last two words in text.\n",
679678
" model_sorted_probabilities = sorted(\n",
680679
" model[tuple(text[-2:])].items(), key=lambda item: item[1], reverse=True\n",

SciPy2024/module2/3-retrieval-augmented-text-generation.ipynb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -846,8 +846,6 @@
846846
"metadata": {},
847847
"outputs": [],
848848
"source": [
849-
"import textwrap\n",
850-
"\n",
851849
"from langchain_community.llms import LlamaCpp\n",
852850
"from langchain_core.prompts import PromptTemplate\n",
853851
"from ssec_tutorials import download_olmo_model"

SciPy2024/module3/1-olmo-chat-rag.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@
8383
"from uuid import uuid4\n",
8484
"import warnings\n",
8585
"\n",
86-
"from qdrant_client import QdrantClient\n",
8786
"\n",
8887
"from langchain_core.runnables import RunnablePassthrough\n",
8988
"from langchain_core.callbacks import CallbackManager, BaseCallbackHandler\n",
@@ -92,7 +91,7 @@
9291
"from langchain_qdrant import Qdrant\n",
9392
"from langchain_huggingface import HuggingFaceEmbeddings\n",
9493
"\n",
95-
"from ssec_tutorials import OLMO_MODEL, QDRANT_PATH, QDRANT_COLLECTION_NAME\n",
94+
"from ssec_tutorials import QDRANT_COLLECTION_NAME\n",
9695
"from ssec_tutorials import download_olmo_model, download_qdrant_data"
9796
]
9897
},

SciPy2024/module3/2-try-with-your-data.ipynb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@
125125
"metadata": {},
126126
"outputs": [],
127127
"source": [
128-
"from langchain_qdrant import Qdrant\n",
129128
"from langchain_huggingface import HuggingFaceEmbeddings"
130129
]
131130
},

0 commit comments

Comments
 (0)