Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#1442)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](pre-commit/pre-commit-hooks@v4.5.0...v4.6.0)
- [github.com/psf/black: 23.12.1 → 24.4.2](psf/black@23.12.1...24.4.2)
- [github.com/astral-sh/ruff-pre-commit: v0.1.9 → v0.4.7](astral-sh/ruff-pre-commit@v0.1.9...v0.4.7)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] committed Jun 4, 2024
1 parent 963baec commit 2c980b7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
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

0 comments on commit 2c980b7

Please sign in to comment.