Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated pre-commit dependencies #5

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
default_language_version:
python: python3
repos:
Expand All @@ -24,7 +23,7 @@ repos:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.3.3
rev: v3.4.0
hooks:
- id: prettier
- repo: https://github.com/psf/black-pre-commit-mirror
Expand All @@ -41,6 +40,10 @@ repos:
- id: codespell
additional_dependencies: [".[toml]"]
exclude_types: [jupyter]
exclude: |
(?x)^(
tests/cassettes.*
)$
- repo: https://github.com/pappasam/toml-sort
rev: v0.24.2
hooks:
Expand All @@ -50,12 +53,10 @@ repos:
hooks:
- id: nb-clean
args: [--preserve-cell-outputs, --remove-empty-cells]
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.23
- repo: https://github.com/henryiii/validate-pyproject-schema-store
rev: 2024.11.25
hooks:
- id: validate-pyproject
additional_dependencies:
- "validate-pyproject-schema-store[all]>=2024.06.24" # For Ruff renaming RUF025 to C420
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.4.30
hooks:
Expand All @@ -74,16 +75,15 @@ repos:
- PyMuPDF>=1.24.12
- anyio
- coredis
- fhaviary[llm]>=0.10.0 # Match pyproject.toml
- ldp>=0.12 # Match pyproject.toml
- fhaviary[llm]>=0.8.2 # Match pyproject.toml
- html2text
- litellm>=1.44 # Match pyproject.toml
- httpx
- limits
- pybtex
- numpy
- pandas-stubs
- pydantic~=2.0 # Match pyproject.toml
- pydantic~=2.0,>=2.10.1,<2.10.2 # Match pyproject.toml
- pydantic-settings
- rich
- tantivy
Expand Down
2 changes: 1 addition & 1 deletion llmclient/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class LLMResult(BaseModel):

id: UUID = Field(default_factory=uuid4)
session_id: UUID | None = Field(
default_factory=cvar_session_id.get,
default_factory=cvar_session_id.get, # type: ignore[arg-type]
description="A persistent ID to associate a group of LLMResults",
alias="answer_id",
)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dependencies = [
"litellm>=1.44", # For LITELLM_LOG addition
"networkx[default]~=3.4", # Pin for pydot fix
"numpy",
"pydantic~=2.0",
"pydantic~=2.0,>=2.10.1,<2.10.2",
"tenacity",
"tiktoken>=0.4.0",
"tqdm",
Expand Down
Loading