Skip to content

Commit

Permalink
Merge pull request #323 from lsst-sqre/tickets/DM-42335
Browse files Browse the repository at this point in the history
DM-42335: Update dependencies
  • Loading branch information
rra authored Jan 2, 2024
2 parents 7374c87 + 187035f commit 8677f3c
Show file tree
Hide file tree
Showing 10 changed files with 1,193 additions and 1,162 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.9
rev: v0.1.10
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
2 changes: 1 addition & 1 deletion controller/requirements/dev.in
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ types-pyyaml

# Documentation
autodoc_pydantic
documenteer[guide]>=1.0.0a7
documenteer[guide]>=1
sphinx-diagrams
634 changes: 317 additions & 317 deletions controller/requirements/dev.txt

Large diffs are not rendered by default.

407 changes: 211 additions & 196 deletions controller/requirements/main.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion controller/src/controller/handlers/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ async def route_user(

# Construct and return the instructions page.
return templates.TemplateResponse(
context.request,
"fileserver.html.jinja",
{
"request": context.request,
"username": user.username,
"base_url": config.base_url,
"path_prefix": config.fileserver.path_prefix,
Expand Down
2 changes: 1 addition & 1 deletion controller/src/controller/handlers/form.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ async def get_user_lab_form(

# Construct and return the spawner form.
return templates.TemplateResponse(
context.request,
"spawner.html.jinja",
{
"request": context.request,
"dropdown_sentinel": DROPDOWN_SENTINEL_VALUE,
"cached_images": images.menu,
"all_images": images.dropdown,
Expand Down
10 changes: 5 additions & 5 deletions controller/src/controller/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
from datetime import timedelta

from fastapi.templating import Jinja2Templates
from jinja2 import PackageLoader
from jinja2 import Environment, PackageLoader

__all__ = ["templates"]

# Starlette requires a directory argument, but since we override the loader so
# that the templates are retrieved from the Python package, it's unused.
templates = Jinja2Templates(
loader=PackageLoader("controller", package_path="templates"),
directory="templates",
env=Environment(
loader=PackageLoader("controller", package_path="templates"),
autoescape=True,
),
)
"""The template manager."""

Expand Down
404 changes: 202 additions & 202 deletions hub/requirements/dev.txt

Large diffs are not rendered by default.

606 changes: 311 additions & 295 deletions hub/requirements/main.txt

Large diffs are not rendered by default.

286 changes: 143 additions & 143 deletions inithome/requirements/dev.txt

Large diffs are not rendered by default.

0 comments on commit 8677f3c

Please sign in to comment.