pre-commit-ci[bot]
1f1a193eca
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2022-06-08 22:50:49 +00:00
xuj2
133eb22836
add table of contents to Flask, Blueprint, Request, and Response objects
...
Adding table of contents specifically to Flask, Blueprint, Request, and Response objects to make it easier and quicker for users to navigate through long lists of class functions and properties.
2022-06-08 15:47:25 -07:00
David Lord
db3187fd7a
Merge pull request #4624 from pallets/view-init-scope
...
add `View.init_every_request` attribute
2022-06-06 15:52:48 -07:00
David Lord
45174bf9a1
use __init_subclass__ instead of metaclass for MethodView
2022-06-06 15:48:36 -07:00
David Lord
bab5a65e6e
rewrite class-based view docs
2022-06-06 15:33:46 -07:00
David Lord
6e23239567
add View.init_every_request attribute
2022-06-06 15:11:01 -07:00
David Lord
aab1d9935e
Merge pull request #4621 from pallets/deprecate-before_first_request
...
deprecate before_first_request
2022-06-06 10:11:00 -07:00
David Lord
96c97dec09
deprecate before_first_request
2022-06-06 10:04:05 -07:00
David Lord
7a2d5fb6df
Merge branch '2.1.x'
2022-06-06 09:30:30 -07:00
David Lord
c7f2ab8e7a
Merge pull request #4610 from eprigorodov/feature-4602-namespace-path
2022-06-06 09:26:53 -07:00
David Lord
b06df0a792
remove outdated instance path test
2022-06-06 09:17:53 -07:00
David Lord
3ba37d2afe
fix uninstalled package tests under tox
2022-06-06 08:24:05 -07:00
Evgeny Prigorodov
88bcf78439
instance_path for namespace packages uses path closest to submodule
2022-06-06 08:16:00 -07:00
David Lord
fb89745408
Merge pull request #4579 from lecovi/docs/#4574-test-typing
2022-06-05 15:54:08 -07:00
David Lord
48766754b8
add typing tests to mypy config
2022-06-05 15:49:41 -07:00
David Lord
5e40aa22af
Merge pull request #4620 from Numerlor/remove-extra-backtick
...
Remove extra backtick in docs
2022-06-05 15:45:22 -07:00
David Lord
3351a8677e
add errorhandler type check tests
2022-06-05 15:44:28 -07:00
David Lord
81be290ec8
view function is actually type checked
2022-06-05 15:43:53 -07:00
Numerlor
72cae9ce2b
Remove extra backtick
2022-06-05 02:57:49 +02:00
David Lord
696d7c620d
Merge pull request #4617 from nk9/2.1.x
...
Fix incorrect references to `query` in testing doc
2022-06-01 16:10:31 -07:00
Nick Kocharhook
5d31ce1031
Fix incorrect references to query in testing doc
...
The [EnvironBuilder doc](https://werkzeug.palletsprojects.com/en/2.1.x/test/#werkzeug.test.EnvironBuilder ) shows that the correct name for the keyword argument is `query_string`, not `query`. Using `query` results in an error.
I've fixed the two places this appears in the testing doc.
2022-06-01 12:16:21 -07:00
lecovi
8c6f1d96de
add example code for testing typing tools
2022-06-01 11:34:51 -07:00
David Lord
9e2e1de2fc
Merge branch '2.1.x'
2022-06-01 11:27:08 -07:00
David Lord
21d32ee067
update requirements
2022-06-01 11:23:09 -07:00
David Lord
c6e3fc8072
Merge pull request #4613 from citramon/test_for_from_mapping_config_skip_not_upper
...
Add test config.from_mapping method: ignoring items with non-upper keys
2022-05-31 09:10:36 -07:00
Stanislav Bushuev
3ecebcdf8d
Add test config.from_mapping method: ignoring items with non-upper keys
2022-05-31 17:51:39 +02:00
David Lord
83e9680649
Merge pull request #4603 from f3ndot/use-correct-response-type-for-after-request-callable
...
Fix type annotation for `after_request` callable type
2022-05-23 13:56:19 -07:00
David Lord
61f62e6005
access flask types through namespace alias
2022-05-23 13:21:22 -07:00
Justin Bull
8cb950671f
use bound typevar to accept Flask and Werkzeug Response classes
2022-05-23 13:21:22 -07:00
David Lord
a4f63e0390
start version 2.1.3
2022-05-23 10:54:02 -07:00
David Lord
60ac0c5092
Merge pull request #4595 from nkabrown/add-installation-tutorial-link
...
Add link to additional packaging info
2022-05-23 10:44:48 -07:00
Nathan Brown
c45c81938a
Add link to additional packaging info
2022-05-23 10:42:51 -07:00
David Lord
ab76703532
Merge pull request #4581 from lecovi/docs/#3871-celery-config
...
docs: new configuration format for celery
2022-05-23 10:19:59 -07:00
lecovi
9252be9c9e
docs: new configuration format for celery
2022-05-23 10:16:45 -07:00
David Lord
1888df3440
Merge remote-tracking branch 'origin/2.1.x'
2022-05-23 10:08:52 -07:00
David Lord
d506af1b1f
update requirements
2022-05-23 10:08:43 -07:00
David Lord
31aad113ff
Merge pull request #4606 from pallets/cli-imports
...
inline conditional imports for cli behaviors
2022-05-23 09:51:58 -07:00
David Lord
1232d69860
inline conditional imports for cli behaviors
2022-05-23 09:46:20 -07:00
David Lord
a52a7db6c9
Merge pull request #4577 from hallacy/hallacy/fix_4571
...
update setupmethod behavior
2022-05-23 09:12:45 -07:00
David Lord
e044b00047
avoid triggering setupmethod late in tests
2022-05-23 09:09:12 -07:00
David Lord
a406c297aa
apply setupmethod consistently
2022-05-23 09:09:12 -07:00
Chris Hallacy
eb36135cfe
always warn on blueprint setupmethod after registration
2022-05-23 09:09:12 -07:00
David Lord
ca8e6217fe
Merge pull request #4596 from pallets/url_for-template
...
use app.url_for as template global
2022-05-15 08:54:26 -07:00
David Lord
69e2300608
use app.url_for as template global
...
avoid extra call from helpers.url_for
update changelog for method moves
2022-05-15 08:48:30 -07:00
David Lord
00e2aac937
Merge pull request #4580 from ionesu/move_url_for_to_the_flask_app_object
...
Move url_for to the Flask app object
2022-05-14 12:50:37 -07:00
David Lord
39f9363296
finish moving url_for to app
...
move entire implementation to app
make special build args actual keyword-only args
handle no app context in method
mention other config in server_name error
implicit external with scheme
use adapter.build url_scheme argument
rewrite documentation
2022-05-14 12:46:01 -07:00
Ivan Sushkov
92acd05d9b
add url_for method to app
2022-05-14 12:45:18 -07:00
David Lord
fac630379d
update app.redirect docs
2022-05-12 16:33:40 -07:00
David Lord
5512a66881
Merge pull request #4576 from dzcode/dzcode/4567/abort-implementation
...
Add 'aborter' and 'aborter_class' attrs to 'Flask' object
2022-05-12 13:45:37 -07:00
dzcode
eb5dd9f5ef
add aborter object to app
2022-05-12 13:29:54 -07:00