Commit graph

4792 commits

Author SHA1 Message Date
David Lord
bfdd37110c
deprecate config attributes 2022-08-01 16:58:55 -07:00
David Lord
98ca00d545
Merge pull request #4720 from pallets/deprecate-env
deprecate `FLASK_ENV` and `app.env`
2022-08-01 15:19:16 -07:00
David Lord
30427a2090
remove FLASK_ENV from docs 2022-08-01 15:11:35 -07:00
David Lord
ef95998d79
deprecate FLASK_ENV 2022-08-01 15:11:21 -07:00
David Lord
4c08e3a2ba
update pycharm instructions 2022-08-01 11:39:31 -07:00
David Lord
3e5ca2902e
Merge pull request #4719 from pallets/remove-lazy-option
remove `__traceback_hide__`
2022-08-01 10:56:14 -07:00
David Lord
7d53a129cf
remove __traceback_hide__ 2022-08-01 10:52:12 -07:00
David Lord
633f421031
Merge pull request #4718 from pallets/remove-lazy-option
remove `--eager-loader/--lazy-loader` options
2022-08-01 10:44:31 -07:00
David Lord
5d8e35653f
refactor lazy loading
Remove the `--eager-loading/--lazy-loading` options and the
`DispatchingApp` middleware. The `run` command handles loading
exceptions directly. The reloader always prints out tracebacks
immediately and always defers raising the error.
2022-08-01 10:34:13 -07:00
David Lord
095651be9e
fix has_app_context and has_request_context 2022-07-25 07:35:17 -07:00
David Lord
02a0851252
Merge branch '2.1.x' 2022-07-24 19:37:30 -07:00
David Lord
363be75e84
remove reference links from changelog 2022-07-24 19:36:31 -07:00
David Lord
2869ddf50c
update blinker intersphinx link 2022-07-24 19:35:28 -07:00
David Lord
add53e190c
require Werkzeug 2.2 2022-07-24 18:42:11 -07:00
David Lord
900e11850a
Merge pull request #4695 from zr40/allow-typeddict-as-responsevalue
Allow TypedDict as a ResponseValue
2022-07-14 14:17:38 -07:00
Matthijs van der Vleuten
4bf7415a96
allow TypedDict as a response value 2022-07-14 14:15:05 -07:00
David Lord
76a6b4f2b5
Merge branch '2.1.x' 2022-07-13 14:03:01 -07:00
David Lord
4f01c68a4b
fix issue link 2022-07-13 14:02:50 -07:00
David Lord
48fe96588c
Merge branch '2.1.x' 2022-07-13 13:58:07 -07:00
David Lord
187d7179f6
Merge pull request #4694 from pallets/release-2.1.3
release version 2.1.3
2022-07-13 13:54:33 -07:00
David Lord
134aebe601
release version 2.1.3 2022-07-13 13:51:42 -07:00
David Lord
a7859c6947
Merge pull request #4693 from Yourun-proger/msg_app_ctx
error message for `render_template` outside app context
2022-07-13 13:50:05 -07:00
Yourun-Proger
58f3536a8f
error for render_template outside app context 2022-07-13 13:45:42 -07:00
David Lord
7096b2c4b1
update requirements 2022-07-13 13:39:51 -07:00
David Lord
67310ab496
Merge pull request #4692 from pallets/json-provider
add JSON provider interface
2022-07-13 09:55:00 -07:00
David Lord
69f9845ef2
add json provider interface 2022-07-13 07:42:52 -07:00
David Lord
c356c6da5f
Merge pull request #4687 from Jalkhov/patch-1
Fix CHANGES.rst typo
2022-07-11 16:50:10 -07:00
Pedro Torcatt
03b410066b
Fix docs/CHANGES.rst typo 2022-07-11 18:02:00 -04:00
David Lord
4696156278
Merge pull request #4686 from Jalkhov/main
Small grammatical suggestion
2022-07-10 04:36:55 -07:00
Pedro Torcatt
58ecacd271
Change Roll back by Rever 2022-07-10 07:22:56 -04:00
David Lord
5775d1e9b1
Merge pull request #4685 from pgjones/name
Change _cv_req -> _cv_request
2022-07-09 05:44:52 -07:00
pgjones
91044c4d76 Change _cv_req -> _cv_request
This is a clearer name for the variable.
2022-07-09 13:41:35 +01:00
David Lord
979e0adbac
fix pr link 2022-07-08 12:02:18 -07:00
David Lord
cbebdae698
Merge pull request #4682 from pallets/refactor-context-stack
remove use of `LocalStack`
2022-07-08 11:58:44 -07:00
David Lord
e0dad45481
update docs about contexts 2022-07-08 11:13:09 -07:00
David Lord
82c2e0366c
remove uses of LocalStack 2022-07-08 11:13:09 -07:00
David Lord
d597db67de
contexts no longer use LocalStack 2022-07-08 11:13:09 -07:00
David Lord
0b2f809f9b
access names as proxies directly 2022-07-08 11:13:09 -07:00
David Lord
89463cb77c
require Werkzeug 2.2 2022-07-08 11:13:09 -07:00
David Lord
94233fc8c0
Merge pull request #4681 from earlruby/patch-1
New URL for the Quart project
2022-07-08 10:28:01 -07:00
Earl C. Ruby III
6751f68560
New URL for the Quart project
The Quart project moved from Gitlab (https://gitlab.com/pgjones/quart) to Github (https://github.com/pallets/quart). There is a message at the top of the Gitlab page announcing the move.
2022-07-08 10:21:42 -07:00
David Lord
c757882808
Merge pull request #4680 from pgjones/typing-test
Add further typing tests
2022-07-08 06:41:56 -07:00
pgjones
2f1d1d6256 Add further typing tests
This should help ensure the app decorators are correctly typed.
2022-07-08 14:33:20 +01:00
Phil Jones
9b44bf2818
Improve decorator typing (#4676)
* Add a missing setupmethod decorator

* Improve the decorator typing

This will allow type checkers to understand that the decorators return
the same function signature as passed as an argument. This follows the
guidelines from
https://mypy.readthedocs.io/en/stable/generics.html#declaring-decorators.

I've chosen to keep a TypeVar per module and usage as I think
encouraged by PEP 695, which I hope is accepted as the syntax is much
nicer.
2022-07-06 14:05:20 -07:00
David Lord
cafe68e1ed
Merge pull request #4675 from tiesjan/2.1.x
Document serialization of Decimal in JSONEncoder
2022-07-06 05:33:05 -07:00
Ties Jan Hefting
9dfcb90c92
Document serialization of Decimal in JSONEncoder
The Flask JSONEncoder serializes Decimal types to strings, but this
behavior is missing from the docs. The docs are updated accordingly.
2022-07-06 11:47:50 +02:00
David Lord
d7482cd765
Merge branch '2.1.x' 2022-07-04 17:03:08 -07:00
David Lord
e4c4fd5771
Merge pull request #4674 from pallets/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2022-07-04 15:55:54 -07:00
pre-commit-ci[bot]
e9d0000fc1
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v2.32.1 → v2.34.0](https://github.com/asottile/pyupgrade/compare/v2.32.1...v2.34.0)
- [github.com/asottile/reorder_python_imports: v3.1.0 → v3.3.0](https://github.com/asottile/reorder_python_imports/compare/v3.1.0...v3.3.0)
- [github.com/psf/black: 22.3.0 → 22.6.0](https://github.com/psf/black/compare/22.3.0...22.6.0)
- [github.com/pre-commit/pre-commit-hooks: v4.2.0 → v4.3.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.2.0...v4.3.0)
2022-07-04 22:37:19 +00:00
David Lord
50df54e4c7
explain workflow 2022-07-04 08:35:36 -07:00