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

[pre-commit.ci] pre-commit autoupdate #1442

Merged
merged 2 commits into from
Jun 4, 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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ci:
repos:
# Autoformat and linting, misc. details
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: forbid-new-submodules
- id: end-of-file-fixer
Expand All @@ -25,12 +25,12 @@ repos:

# Autoformat: Python code
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.4.2
hooks:
- id: black

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.9
rev: v0.4.7
hooks:
- id: ruff
args: ['--fix']
Expand Down
1 change: 1 addition & 0 deletions tests/template_prefixes/loader_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests loading template of jinja2 templates"""

import os

from jinja2 import Environment, FileSystemLoader
Expand Down
6 changes: 3 additions & 3 deletions voila/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ async def get_generator(self, path=None):
# Adding request uri to kernel env
request_info = {}
request_info[ENV_VARIABLE.SCRIPT_NAME] = self.request.path
request_info[
ENV_VARIABLE.PATH_INFO
] = "" # would be /foo/bar if voila.ipynb/foo/bar was supported
request_info[ENV_VARIABLE.PATH_INFO] = (
"" # would be /foo/bar if voila.ipynb/foo/bar was supported
)
request_info[ENV_VARIABLE.QUERY_STRING] = str(self.request.query)
request_info[ENV_VARIABLE.SERVER_SOFTWARE] = f"voila/{__version__}"
request_info[ENV_VARIABLE.SERVER_PROTOCOL] = str(self.request.version)
Expand Down
Loading