Skip to content

Commit

Permalink
Merge branch 'main' into split-request-params
Browse files Browse the repository at this point in the history
  • Loading branch information
VishnuSanal authored Oct 6, 2024
2 parents fe49c3b + 028f161 commit c134c60
Show file tree
Hide file tree
Showing 44 changed files with 142 additions and 97 deletions.
31 changes: 17 additions & 14 deletions .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
name: "Lint PR"
name: Lint PR

on:
pull_request_target:
types:
- opened
- edited
- synchronize

permissions:
pull-requests: read
pull_request:
branches: [main]

jobs:
main:
name: Validate PR title
lint:
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff isort black
- name: Run linters
run: |
ruff check .
isort --check-only --diff .
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ repos:
args:
- --fix
- id: ruff-format

ci:
autoupdate_schedule: weekly
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "robyn"
version = "0.61.1"
version = "0.61.2"
authors = ["Sanskar Jethi <sansyrox@gmail.com>"]
edition = "2021"
description = "A web server that is fast!"
Expand Down
2 changes: 1 addition & 1 deletion docs_src/src/pages/documentation/api_reference/scaling.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ Batman scaled his application across multiple cores for better performance. He u

Now, Batman wanted to extend Robyn. Robyn told him about the advanced features.

- [Advanced Features](/documentation/advanced_features)
- [Advanced Features](/documentation/api_reference/advanced_features)

3 changes: 2 additions & 1 deletion integration_tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import os
import pathlib
import platform
import signal
import socket
import subprocess
import time
from typing import List
import platform

import pytest

from integration_tests.helpers.network_helpers import get_network_host


Expand Down
2 changes: 1 addition & 1 deletion integration_tests/helpers/network_helpers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import socket
import platform
import socket


def get_network_host():
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/subroutes/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from robyn import SubRouter, jsonify, WebSocket
from robyn import SubRouter, WebSocket, jsonify

from .di_subrouter import di_subrouter

Expand Down
2 changes: 1 addition & 1 deletion integration_tests/subroutes/di_subrouter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from robyn import SubRouter, Request
from robyn import Request, SubRouter

di_subrouter = SubRouter(__file__, "/di_subrouter")
GLOBAL_DEPENDENCY = "GLOBAL DEPENDENCY OVERRIDE"
Expand Down
2 changes: 2 additions & 0 deletions integration_tests/test_add_route_without_decorator.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from collections.abc import Callable

import pytest

from integration_tests.helpers.http_methods_helpers import get, post, put


Expand Down
6 changes: 3 additions & 3 deletions integration_tests/test_app.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from robyn import Robyn, ALLOW_CORS
import pytest

from robyn import ALLOW_CORS, Robyn
from robyn.events import Events
from robyn.robyn import Headers

import pytest


@pytest.mark.benchmark
def test_add_request_header():
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_base_url.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os
import pytest

import pytest
import requests

from integration_tests.helpers.network_helpers import get_network_host
Expand Down
1 change: 1 addition & 0 deletions integration_tests/test_delete_requests.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from integration_tests.helpers.http_methods_helpers import delete


Expand Down
1 change: 1 addition & 0 deletions integration_tests/test_env_populator.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import pathlib

import pytest

from robyn.env_populator import load_vars, parser
Expand Down
2 changes: 2 additions & 0 deletions integration_tests/test_exception_handling.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from collections.abc import Callable

import pytest

from integration_tests.helpers.http_methods_helpers import get, post, put


Expand Down
1 change: 1 addition & 0 deletions integration_tests/test_file_download.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from integration_tests.helpers.http_methods_helpers import get


Expand Down
1 change: 1 addition & 0 deletions integration_tests/test_multipart_data.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from integration_tests.helpers.http_methods_helpers import multipart_post


Expand Down
1 change: 1 addition & 0 deletions integration_tests/test_patch_requests.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from integration_tests.helpers.http_methods_helpers import patch


Expand Down
1 change: 1 addition & 0 deletions integration_tests/test_post_requests.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from integration_tests.helpers.http_methods_helpers import post


Expand Down
1 change: 1 addition & 0 deletions integration_tests/test_put_requests.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from integration_tests.helpers.http_methods_helpers import put


Expand Down
1 change: 1 addition & 0 deletions integration_tests/test_status_code.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from integration_tests.helpers.http_methods_helpers import get


Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_subrouter.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from websocket import create_connection
import pytest
from websocket import create_connection

from integration_tests.helpers.http_methods_helpers import generic_http_helper, head

Expand Down
3 changes: 2 additions & 1 deletion integration_tests/test_views.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from integration_tests.helpers.http_methods_helpers import get, post
import pytest

from integration_tests.helpers.http_methods_helpers import get, post


@pytest.mark.benchmark
def test_get_sync_view(session):
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_web_sockets.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import json

from websocket import create_connection
import pytest
from websocket import create_connection

BASE_URL = "ws://127.0.0.1:8080"

Expand Down
2 changes: 1 addition & 1 deletion integration_tests/views/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .sync_view import SyncView
from .async_view import AsyncView
from .sync_view import SyncView

__all__ = ["SyncView", "AsyncView"]
1 change: 1 addition & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import sys

import nox


Expand Down
63 changes: 33 additions & 30 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c134c60

Please sign in to comment.