L. Kärkkäinen
00493a6954
Format
CodeQL / Analyze (python) (pull_request) Failing after 1m34s
Coverage check / Check coverage (pull_request) Failing after 29s
Tests / ${{ matrix.config.platform == 'windows-latest' && 'Windows' || 'Linux' }} / Python ${{ matrix.config.python-version }} / tox -e ${{ matrix.config.tox-env }} (map[max-attempts:3 python-version:3.10 tox-env:py310-no-ext]) (pull_request) Failing after 4s
Tests / ${{ matrix.config.platform == 'windows-latest' && 'Windows' || 'Linux' }} / Python ${{ matrix.config.python-version }} / tox -e ${{ matrix.config.tox-env }} (map[max-attempts:3 python-version:3.10 tox-env:py310]) (pull_request) Failing after 4s
Tests / ${{ matrix.config.platform == 'windows-latest' && 'Windows' || 'Linux' }} / Python ${{ matrix.config.python-version }} / tox -e ${{ matrix.config.tox-env }} (map[max-attempts:3 python-version:3.11 tox-env:py311-no-ext]) (pull_request) Failing after 4s
Tests / ${{ matrix.config.platform == 'windows-latest' && 'Windows' || 'Linux' }} / Python ${{ matrix.config.python-version }} / tox -e ${{ matrix.config.tox-env }} (map[max-attempts:3 python-version:3.11 tox-env:py311]) (pull_request) Failing after 4s
Tests / ${{ matrix.config.platform == 'windows-latest' && 'Windows' || 'Linux' }} / Python ${{ matrix.config.python-version }} / tox -e ${{ matrix.config.tox-env }} (map[max-attempts:3 python-version:3.8 tox-env:py38-no-ext]) (pull_request) Failing after 5s
Tests / ${{ matrix.config.platform == 'windows-latest' && 'Windows' || 'Linux' }} / Python ${{ matrix.config.python-version }} / tox -e ${{ matrix.config.tox-env }} (map[max-attempts:3 python-version:3.8 tox-env:py38]) (pull_request) Failing after 4s
Tests / ${{ matrix.config.platform == 'windows-latest' && 'Windows' || 'Linux' }} / Python ${{ matrix.config.python-version }} / tox -e ${{ matrix.config.tox-env }} (map[max-attempts:3 python-version:3.9 tox-env:py39-no-ext]) (pull_request) Failing after 4s
Tests / ${{ matrix.config.platform == 'windows-latest' && 'Windows' || 'Linux' }} / Python ${{ matrix.config.python-version }} / tox -e ${{ matrix.config.tox-env }} (map[max-attempts:3 python-version:3.9 tox-env:py39]) (pull_request) Failing after 4s
Tests / ${{ matrix.config.platform == 'windows-latest' && 'Windows' || 'Linux' }} / Python ${{ matrix.config.python-version }} / tox -e ${{ matrix.config.tox-env }} (map[python-version:3.10 tox-env:lint]) (pull_request) Failing after 4s
Tests / ${{ matrix.config.platform == 'windows-latest' && 'Windows' || 'Linux' }} / Python ${{ matrix.config.python-version }} / tox -e ${{ matrix.config.tox-env }} (map[python-version:3.10 tox-env:security]) (pull_request) Failing after 5s
Tests / ${{ matrix.config.platform == 'windows-latest' && 'Windows' || 'Linux' }} / Python ${{ matrix.config.python-version }} / tox -e ${{ matrix.config.tox-env }} (map[python-version:3.10 tox-env:type-checking]) (pull_request) Failing after 4s
Tests / ${{ matrix.config.platform == 'windows-latest' && 'Windows' || 'Linux' }} / Python ${{ matrix.config.python-version }} / tox -e ${{ matrix.config.tox-env }} (map[python-version:3.11 tox-env:security]) (pull_request) Failing after 4s
Tests / ${{ matrix.config.platform == 'windows-latest' && 'Windows' || 'Linux' }} / Python ${{ matrix.config.python-version }} / tox -e ${{ matrix.config.tox-env }} (map[python-version:3.11 tox-env:type-checking]) (pull_request) Failing after 5s
Tests / ${{ matrix.config.platform == 'windows-latest' && 'Windows' || 'Linux' }} / Python ${{ matrix.config.python-version }} / tox -e ${{ matrix.config.tox-env }} (map[python-version:3.8 tox-env:security]) (pull_request) Failing after 4s
Tests / ${{ matrix.config.platform == 'windows-latest' && 'Windows' || 'Linux' }} / Python ${{ matrix.config.python-version }} / tox -e ${{ matrix.config.tox-env }} (map[python-version:3.8 tox-env:type-checking]) (pull_request) Failing after 5s
Tests / ${{ matrix.config.platform == 'windows-latest' && 'Windows' || 'Linux' }} / Python ${{ matrix.config.python-version }} / tox -e ${{ matrix.config.tox-env }} (map[python-version:3.9 tox-env:security]) (pull_request) Failing after 4s
Tests / ${{ matrix.config.platform == 'windows-latest' && 'Windows' || 'Linux' }} / Python ${{ matrix.config.python-version }} / tox -e ${{ matrix.config.tox-env }} (map[python-version:3.9 tox-env:type-checking]) (pull_request) Failing after 5s
Tests / ${{ matrix.config.platform == 'windows-latest' && 'Windows' || 'Linux' }} / Python ${{ matrix.config.python-version }} / tox -e ${{ matrix.config.tox-env }} (map[ignore-errors:true platform:windows-latest python-version:3.10 tox-env:py310-no-ext]) (pull_request) Has been cancelled
Tests / ${{ matrix.config.platform == 'windows-latest' && 'Windows' || 'Linux' }} / Python ${{ matrix.config.python-version }} / tox -e ${{ matrix.config.tox-env }} (map[ignore-errors:true platform:windows-latest python-version:3.11 tox-env:py310-no-ext]) (pull_request) Has been cancelled
Tests / ${{ matrix.config.platform == 'windows-latest' && 'Windows' || 'Linux' }} / Python ${{ matrix.config.python-version }} / tox -e ${{ matrix.config.tox-env }} (map[ignore-errors:true platform:windows-latest python-version:3.8 tox-env:py38-no-ext]) (pull_request) Has been cancelled
Tests / ${{ matrix.config.platform == 'windows-latest' && 'Windows' || 'Linux' }} / Python ${{ matrix.config.python-version }} / tox -e ${{ matrix.config.tox-env }} (map[ignore-errors:true platform:windows-latest python-version:3.9 tox-env:py39-no-ext]) (pull_request) Has been cancelled
2023-10-25 07:34:16 +01:00
L. Kärkkäinen
c8d0c1bf28
Remove extra parenthesis of type unions
2023-10-25 07:32:01 +01:00
L. Kärkkäinen
6ea5c44566
Typing issues fixed.
2023-10-25 07:11:59 +01:00
L. Kärkkäinen
1afea39cb2
Format with default line-length=88 (was 79 with Sanic).
2023-10-25 04:13:13 +01:00
L. Kärkkäinen
e4daf1ab21
Removed flake8, black and isort; moving towards ruff default settings instead.
2023-10-25 04:12:24 +01:00
L. Kärkkäinen
469cb1663b
Update sanic/handlers/error.py
...
Missed one in previous commit
2023-10-25 02:43:54 +00:00
L. Kärkkäinen
cdc5dd6b75
Hand-fixed typing extra () and changed some formatting to f-strings that Ruff had missed
2023-10-25 02:36:08 +00:00
L. Kärkkäinen
53b7412c01
String literals and type annotations...
2023-10-25 02:59:41 +01:00
L. Kärkkäinen
65ba1942cc
Flake8-comprehensions (C4) --fix go brrr
2023-10-25 02:28:52 +01:00
L. Kärkkäinen
9ae25e6744
ruff --fix # also import sorting
2023-10-25 01:03:35 +01:00
L. Kärkkäinen
140d27ef96
ruff format
2023-10-25 00:22:00 +01:00
Adam Hopkins
d255d1aae1
Conversion of User Guide to the SHH stack ( #2781 )
2023-09-06 15:44:00 +03:00
Adam Hopkins
38ff9069f3
Suppress task cancel traceback ( #2812 )
2023-08-30 09:05:37 +03:00
Adam Hopkins
205795d1e8
Prepare for v23.6 release ( #2797 )
2023-07-25 15:57:29 +03:00
Adam Hopkins
9cbe1fb8ad
Add convenience method for exception reporting ( #2792 )
2023-07-18 00:21:55 +03:00
L. Kärkkäinen
31d7ba8f8c
Add request.client_ip ( #2790 )
...
Co-authored-by: L. Kärkkäinen <Tronic@users.noreply.github.com>
2023-07-13 23:01:02 +03:00
Adam Hopkins
dc3c4d1393
Add custom typing to config and ctx ( #2785 )
2023-07-12 23:47:58 +03:00
L. Kärkkäinen
6e61eab872
Increase KEEP_ALIVE_TIMEOUT default to 120 seconds ( #2670 )
...
Co-authored-by: L. Kärkkäinen <Tronic@users.noreply.github.com>
2023-07-12 08:45:30 +03:00
Adam Hopkins
666371bb92
Set multiprocessing start method early ( #2776 )
2023-07-09 22:34:15 +03:00
Adam Hopkins
4a2b82e42e
Remove Python3.7 support ( #2777 )
2023-07-09 22:00:14 +03:00
Moshe Nahmias
5dd1623192
Alow Blueprint routes to explicitly define error_format ( #2773 )
...
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2023-07-09 14:47:59 +03:00
Adam Hopkins
976da69e79
Add a new exception signal for ALL exceptions raised anywhere in application ( #2724 )
2023-07-09 10:53:36 +03:00
Liam Coatman
11a0b15194
Handle case when headers
argument of ResponseStream
constructor is None
( #2729 )
...
* Handle case when headers is None
* Add test for response stream with default headers
* Move test
---------
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2023-07-09 10:34:40 +03:00
Adam Hopkins
c21999a248
Resolve headers on different renderers - Issue 2749 ( #2774 )
...
* Resolve headers on different renderers - Issue 2749
* Make pretty
2023-07-09 09:57:22 +03:00
guacs
c17230ef94
Update request type on middleware types ( #2754 )
...
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2023-07-09 09:35:24 +03:00
Adam Hopkins
049983cb70
Fix traversals for intended results ( #2728 )
2023-07-09 09:21:39 +03:00
Zhiwei
e374409567
Adding allow route overwrite option in blueprint ( #2716 )
...
* Adding allow route overwrite option
* Add test case for route overwriting after bp copy
* Fix test
* Fix
* Add test case `test_bp_allow_override`
* Remove conflicted future routes when overwriting is allowed
* Improved test test_bp_copy_with_route_overwriting
* Fix type
* Fix type 2
* Add `test_bp_copy_without_route_overwriting` case
* make `allow_route_overwrite` flag to be internal
* Remove unwanted test case
---------
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2023-07-07 14:56:42 +03:00
Adam Hopkins
4068a0d83d
Add name prefixing to BP groups ( #2727 )
2023-07-05 19:31:25 +03:00
Benjamin
70da5e9879
Fix Inner bug: TypeError: __init__() got an unexpected keyword argument 'escape_forward_slashes' #2740 ( #2772 )
2023-07-05 15:30:38 +03:00
Moshe Nahmias
f48506d620
fix #2757 - Improved error messaging on startup time application induced import error ( #2770 )
...
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2023-07-05 14:38:15 +03:00
Mohammad Almoghrabi
273825dab6
Sanic on pypy ( #2682 )
...
Co-authored-by: L. Kärkkäinen <98187+Tronic@users.noreply.github.com>
Co-authored-by: Adam Hopkins <admhpkns@gmail.com>
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2023-07-05 12:14:47 +03:00
Thirumalaisamy K
50117d174c
Fix issue in getting current request through classmethod when served through a different ASGI server ( #2760 )
2023-06-14 22:03:43 +03:00
Néstor Pérez
af67801062
Fix JSONResponse default content type ( #2737 )
2023-04-09 22:23:21 +03:00
Adam Hopkins
6eaab2a7e5
Release 23.3 ( #2723 )
2023-03-26 22:54:28 +03:00
Adam Hopkins
d680af3709
v23.3 Deprecation Removal ( #2717 )
2023-03-26 15:24:08 +03:00
Adam Hopkins
a8c2d77c91
Sync state tolerance ( #2725 )
2023-03-26 08:39:59 +03:00
Adam Hopkins
6e1c787e5d
Simpler CLI targets ( #2700 )
...
Co-authored-by: L. Kärkkäinen <98187+Tronic@users.noreply.github.com>
2023-03-21 20:50:25 +02:00
L. Kärkkäinen
932088e37e
Stricter charset handling and escaping of request URLs ( #2710 )
...
Co-authored-by: L. Karkkainen <tronic@users.noreply.github.com>
2023-03-21 19:55:21 +02:00
Adam Hopkins
1a63b9bec0
Add convenience methods for cookie creation and deletion ( #2706 )
...
* Add convenience methods for cookie creation and deletion
* Restore del
* Backwards compat, forward thinking
* Add delitem deprecation notice
* Add get full deprecation notice
* Add deprecation docstring
* Better deprecation docstring
* Add has_cookie
* Same defaults
* Better deprecation message
* Accessor annotations
* make pretty
* parse cookies
* Revert quote translator
* make pretty
* make pretty
* Add unit tests
* Make pretty
* Fix unit tests
* Directly include unquote
* Add some more unit tests
* Move modules into their own dir
* make pretty
* cleanup test imports
* Add test for cookie accessor
* Make test consistent
* Remove file
* Remove additional escaping
* Add header style getattr for hyphens
* Add test for cookie accessor with hyphens
* Add new translator
* Parametrize test_request_with_duplicate_cookie_key
* make pretty
* Add deprecation of direct cookie encoding
* Speedup Cookie creation
* Implement prefixes on delete_cookie
* typing changes
* Add passthru functions on response objects for setting cookies
* Add test for passthru
---------
Co-authored-by: L. Kärkkäinen <98187+Tronic@users.noreply.github.com>
2023-03-21 11:25:35 +02:00
Zhiwei
61aa16f6ac
Decode headers as UTF-8 also in ASGI ( #2606 )
...
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2023-03-20 15:39:57 +02:00
Adam Hopkins
71cd53b64e
Standardize init of exceptions ( #2545 )
2023-03-20 14:50:50 +02:00
Adam Hopkins
89188f5fc6
Add CertLoader as application option ( #2722 )
2023-03-20 14:05:21 +02:00
Adam Hopkins
a245ab3773
Change logging format to %s ( #2721 )
2023-03-20 13:25:06 +02:00
Adam Hopkins
ac1f56118a
Skip middleware on RequestCancelled ( #2720 )
2023-03-20 13:00:34 +02:00
Adam Hopkins
53820bc241
Allow password to be passed to TLS context ( #2719 )
2023-03-20 12:34:36 +02:00
stricaud
009954003c
Fix comparison from wrong formats with datetime objects ( #2697 )
...
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2023-03-20 12:12:09 +02:00
Adam Hopkins
8f265b8169
Add convenience for dynamic changes to routing ( #2704 )
2023-03-19 15:40:58 +02:00
Adam Hopkins
5ee36fd933
Separate ASGI request and lifespan callables ( #2646 )
2023-03-17 09:05:33 +02:00
Adam Hopkins
5a0ed75171
Consume body on DELETE by default ( #2711 )
2023-03-15 18:42:45 +02:00
Adam Hopkins
d62a92fac9
API to define a number of workers ( #2701 )
2023-03-15 16:02:17 +02:00