Skip to content

Commit

Permalink
Should work
Browse files Browse the repository at this point in the history
  • Loading branch information
silviogutierrez committed Jul 11, 2024
1 parent 8fb6e2e commit 453c673
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
- uses: ./.github/actions/setup
- name: Run tests
run: nix-shell --command "scripts/test.sh"
- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
# - name: Setup tmate session
# if: ${{ failure() }}
# uses: mxschmitt/action-tmate@v3
integration_tests:
name: Integration tests
runs-on: ${{ matrix.os }}
Expand Down
6 changes: 3 additions & 3 deletions reactivated/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from typing import Any, List, Optional

import requests
import requests_unixsocket # type: ignore[import-untyped]
import requests_unixsocket
import simplejson
from django.conf import settings
from django.http import HttpRequest
Expand Down Expand Up @@ -72,7 +72,7 @@ def should_respond_with_json(request: HttpRequest) -> bool:
)


session = requests_unixsocket.Session()
session = requests_unixsocket.Session() # type: ignore[no-untyped-call]


def render_jsx_to_string(request: HttpRequest, context: Any, props: Any) -> str:
Expand Down Expand Up @@ -111,7 +111,7 @@ def render_jsx_to_string(request: HttpRequest, context: Any, props: Any) -> str:
response = session.post(f"{address}{path}", headers=headers, data=data)

if response.status_code == 200:
return response.text # type: ignore[no-any-return]
return response.text
else:
try:
error = response.json()
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ flake8==7.0.0
isort==5.13.2
black==22.3.0
autoflake==2.3.0
django-stubs==5.0.2

Werkzeug==3.0.1
django-extensions==3.2.3
Expand Down

0 comments on commit 453c673

Please sign in to comment.