David Lord
5c0b9a6af3
Merge pull request #4526 from lbm98/docfix
2022-04-08 11:02:45 -07:00
LarsMoons
e3c014f9aa
docs "Returning API Errors as JSON" return correct status code
2022-04-08 10:57:02 -07:00
David Lord
b9729a0879
Merge pull request #4518 from pallets/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-04-08 10:56:25 -07:00
David Lord
56414782ca
pre-commit update branch
2022-04-08 10:53:28 -07:00
pre-commit-ci[bot]
50bf3bba73
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.31.0 → v2.31.1](https://github.com/asottile/pyupgrade/compare/v2.31.0...v2.31.1 )
- [github.com/asottile/reorder_python_imports: v2.7.1 → v3.0.1](https://github.com/asottile/reorder_python_imports/compare/v2.7.1...v3.0.1 )
- [github.com/psf/black: 22.1.0 → 22.3.0](https://github.com/psf/black/compare/22.1.0...22.3.0 )
- [github.com/peterdemin/pip-compile-multi: v2.4.3 → v2.4.5](https://github.com/peterdemin/pip-compile-multi/compare/v2.4.3...v2.4.5 )
2022-04-08 10:53:20 -07:00
David Lord
0d4e71bfe1
Merge pull request #4517 from pallets/update-requirements
...
update requirements
2022-04-01 13:54:39 -07:00
David Lord
26555a85f1
update requirements
2022-04-01 13:44:13 -07:00
David Lord
188bd17ff1
Merge pull request #4511 from pallets/release-2.1.1
...
release version 2.1.1
2022-03-30 14:37:30 -07:00
David Lord
c6f297719e
release version 2.1.1
2022-03-30 14:35:07 -07:00
David Lord
a8f4ee1b66
Merge pull request #4510 from pallets/release-2.1.1
...
release version 2.1.1
2022-03-30 14:33:50 -07:00
David Lord
c419931f55
release version 2.1.1
2022-03-30 14:28:18 -07:00
David Lord
c3d0880e72
Merge pull request #4509 from pallets/importlib_metadata-min-version
...
set importlib_metadata minimum version
2022-03-30 14:23:02 -07:00
David Lord
d023d94371
set importlib_metadata minimum version
2022-03-30 14:10:12 -07:00
David Lord
5589915b38
start version 2.1.1
2022-03-30 14:01:10 -07:00
David Lord
65b0eef303
Merge pull request #4500 from pallets/release-2.1.0
...
release version 2.1.0
2022-03-28 12:12:02 -07:00
David Lord
7d264d7dc5
release version 2.1.0
2022-03-28 12:09:35 -07:00
David Lord
f5ed54b031
ignore examples tests
...
causing an unexpected failure in CI
2022-03-28 12:09:35 -07:00
David Lord
cd4ab005a9
fix typing
2022-03-28 12:09:35 -07:00
David Lord
41aaaf7fa0
clean up unused function from prefixed_env pr
2022-03-25 12:24:31 -07:00
David Lord
2f5a2ab82e
Merge pull request #4479 from pgjones/env_config
...
Allow loading of environment variables into the config
2022-03-25 12:14:29 -07:00
David Lord
e75d575361
windows env vars are uppercase
2022-03-25 12:07:45 -07:00
David Lord
4eb5e9455b
more from_prefixed_env features
...
* support nested dict access with "__" separator
* don't specify separator in prefix
* catch exceptions for any loads function
2022-03-25 11:54:45 -07:00
pgjones
08a283af5e
Allow loading of environment variables into the config
...
This new method will pick out any environment variables with a certain
prefix and place them into the config named without the prefix. This
makes it easy to use environment variables to configure the app as is
now more popular than when Flask started.
The prefix should ensure that the environment isn't polluted and the
config isn't polluted by environment variables.
I've followed the dynaconf convention of trying to parse the
environment variable and then falling back to the raw value if parsing
fails.
2022-03-25 11:54:03 -07:00
David Lord
425a62686f
Merge pull request #4496 from pallets/werkzeug-relative-redirect
...
update tests to use relative redirects
2022-03-25 11:53:03 -07:00
David Lord
81c7ff7f8d
update tests for relative redirects
2022-03-25 11:48:26 -07:00
David Lord
ce7b884b73
Merge pull request #4492 from pallets/debug-messages
...
update some debug message behavior
2022-03-23 09:18:20 -07:00
David Lord
6578b493c8
better override for json BadRequest error
2022-03-23 09:13:45 -07:00
David Lord
0a300d007d
better replacement of original form KeyError
2022-03-23 08:26:22 -07:00
David Lord
c9a1f7ad65
don't intercept 307/308 routing redirects
...
These don't change the request body, so the debug error is no longer relevant.
2022-03-23 08:25:22 -07:00
David Lord
598afa0083
Merge pull request #4491 from octopoulpe/patch-1
2022-03-22 06:46:52 -07:00
octopoulpe
d80f41f57d
Update errorhandling.rst
2022-03-22 10:29:00 +01:00
David Lord
7abcf57f54
Merge pull request #4488 from pallets/typing-context-exit
...
accurate type for `__exit__`
2022-03-15 08:48:47 -07:00
David Lord
faaa5594b2
accurate type for __exit__
2022-03-15 08:44:09 -07:00
David Lord
cb7cd1e79b
Merge pull request #4487 from pallets/typing-errorhandler
...
relax `errorhandler` function arg type
2022-03-15 08:36:16 -07:00
David Lord
190dd4df86
don't use AnyStr for ResponseValue type
2022-03-15 08:32:15 -07:00
David Lord
8886328822
relax errorhandler function arg type
2022-03-15 08:32:15 -07:00
David Lord
0ef1e65f6a
Merge pull request #4486 from uedvt359/pr-deletecookie
...
Preserve HttpOnly flag when deleting session cookie
2022-03-15 06:38:35 -07:00
uedvt359
b707bf443a
Preserve HttpOnly flag when deleting session cookie
...
fixes #4485
2022-03-15 06:35:29 -07:00
David Lord
b655a9db30
Merge pull request #4477 from tusharsadhwani/decorator-types
...
Add better types for app decorators
2022-03-08 06:50:25 -08:00
Tushar Sadhwani
af34b8c9e7
Add better types for app decorators
2022-03-08 20:13:30 +05:30
David Lord
8122973f8a
Merge pull request #4473 from pallets/dependabot/github_actions/actions/setup-python-3
...
Bump actions/setup-python from 2 to 3
2022-03-01 08:49:14 -08:00
dependabot[bot]
7dc26a1f41
Bump actions/setup-python from 2 to 3
...
Bumps [actions/setup-python](https://github.com/actions/setup-python ) from 2 to 3.
- [Release notes](https://github.com/actions/setup-python/releases )
- [Commits](https://github.com/actions/setup-python/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-03-01 16:04:16 +00:00
David Lord
4843590c4a
Merge pull request #4461 from pallets/cli-lazy-context
...
lazy loading preserves click context
2022-02-22 19:13:29 -08:00
David Lord
aa13521d42
lazy loading preserves click context
2022-02-22 19:04:03 -08:00
David Lord
3897a51801
Merge pull request #4454 from colincadams/patch-3
...
Fix typing on `Flask.session_interface`
2022-02-19 07:12:40 -08:00
David Lord
642ca6ea68
Merge branch '2.0.x'
2022-02-17 16:26:16 -08:00
David Lord
ad13dbc826
pin setuptools for reorder_python_imports
2022-02-17 16:26:06 -08:00
Colin Adams
6f79cb8a23
Fix typing on app.session_interface
2022-02-16 21:12:01 -08:00
David Lord
b6a8ccd2cf
Merge branch '2.0.x'
2022-02-14 12:06:57 -08:00
David Lord
ef557b3ff2
Merge pull request #4449 from pallets/release-2.0.3
...
release version 2.0.3
2022-02-14 11:46:23 -08:00