From 73243a98beb5edb1ff9cefe9df7b42fef185a164 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Mon, 6 Nov 2023 17:10:55 +0100 Subject: [PATCH] Chore: Code formatting --- pyproject.toml | 2 +- tests/test_nlp.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 50b6ce7..27f986b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -80,7 +80,7 @@ develop = [ "black<24", "mypy==1.6.1", "poethepoet<1", - "pyproject-fmt>=1.3,<1.5", + "pyproject-fmt<1.5,>=1.3", "ruff==0.1.4", "validate-pyproject<0.16", ] diff --git a/tests/test_nlp.py b/tests/test_nlp.py index 90b74d6..4414689 100644 --- a/tests/test_nlp.py +++ b/tests/test_nlp.py @@ -1,7 +1,6 @@ -from pueblo.nlp.resource import CachedWebResource - - def test_cached_web_resource(): + from pueblo.nlp.resource import CachedWebResource + url = "https://github.com/langchain-ai/langchain/raw/v0.0.325/docs/docs/modules/state_of_the_union.txt" docs = CachedWebResource(url).langchain_documents(chunk_size=1000, chunk_overlap=0) assert len(docs) == 42