Skip to content

Commit

Permalink
Fix CI (#1830)
Browse files Browse the repository at this point in the history
Co-authored-by: Garrick Aden-Buie <[email protected]>
  • Loading branch information
cpsievert and gadenbuie authored Jan 29, 2025
1 parent 230940c commit d562055
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ test = [
"seaborn",
"plotnine",
"plotly",
"anywidget",
"duckdb",
"holoviews",
"bokeh",
Expand Down Expand Up @@ -116,6 +117,11 @@ dev = [
"anthropic",
"google-generativeai;python_version>='3.9'",
"langchain_core",
# langsmith (needed for langchain_core) versions >= 0.3
# (up to at least 0.3.2 as of 2025-01-29)
# cause an `argparse.ArgumentError` when running `pytest`.
# https://github.com/posit-dev/py-shiny/issues/1829
"langsmith<0.3",
"openai",
"ollama",
"tokenizers",
Expand Down
1 change: 0 additions & 1 deletion shiny/_autoreload.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ async def process_request(
status_code=http.HTTPStatus.MOVED_PERMANENTLY,
reason_phrase="Moved Permanently",
headers=websockets.Headers(Location=app_url),
body=None,
)
else:
return None
Expand Down
1 change: 1 addition & 0 deletions tests/playwright/deploys/plotly/app_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
pandas
plotly
anywidget
htmltools
git+https://github.com/posit-dev/py-shinywidgets.git#egg=shinywidgets

8 changes: 5 additions & 3 deletions tests/pytest/test_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def test_google_normalization():
if sys.version_info < (3, 9):
return

from google.generativeai import ( # pyright: ignore[reportMissingTypeStubs]
from google.generativeai.generative_models import ( # pyright: ignore[reportMissingTypeStubs]
GenerativeModel,
)

Expand Down Expand Up @@ -382,7 +382,7 @@ def test_as_google_message():
if sys.version_info < (3, 9):
return

from google.generativeai import ( # pyright: ignore[reportMissingTypeStubs]
from google.generativeai.generative_models import ( # pyright: ignore[reportMissingTypeStubs]
GenerativeModel,
)

Expand All @@ -403,7 +403,9 @@ def test_as_google_message():


def test_as_langchain_message():
from langchain_core.language_models.base import LanguageModelInput
from langchain_core.language_models.base import (
LanguageModelInput,
)
from langchain_core.language_models.base import (
Sequence as LangchainSequence, # pyright: ignore[reportPrivateImportUsage]
)
Expand Down

0 comments on commit d562055

Please sign in to comment.