davidism and others added 60 commits April 24, 2021 07:31
This enables type checking in CI and marks the project as typed.
This should make it easier for users to correctly use Flask. The hints
are from Quart.
updates:
- [github.com/asottile/pyupgrade: v2.12.0 → v2.13.0](asottile/pyupgrade@v2.12.0...v2.13.0)
- [github.com/asottile/reorder_python_imports: v2.4.0 → v2.5.0](asottile/reorder-python-imports@v2.4.0...v2.5.0)
- [github.com/psf/black: 20.8b1 → 21.4b0](psf/black@20.8b1...21.4b0)
Many libraries use it so the move is somewhat disruptive.
As long as popular libraries (e.g. Celery) require click 7, depending
on Click 8 in Flask makes it hard to test the latest version (and its
other dependencies) in existing applications.
Move get_root_path back to flask.helpers
Allow using Click 7 with a DeprecationWarning
Add tips for using async on Windows on Python 3.8
…17.1

Bump python-dotenv from 0.17.0 to 0.17.1
This was required with the previous implementation of Werkzeug's
locals which didn't persist across threads. However as the current
implementation uses ContextVars which do persist the context copying
is no longer required.
Firstly `run_sync` was a misleading name as it didn't run anything,
instead I think `async_to_sync` is much clearer as it converts a
coroutine function to a function. (Name stolen from asgiref).

Secondly trying to run the ensure_sync during registration made the
code more complex and brittle, e.g. the _flask_async_wrapper
usage. This was done to pay any setup costs during registration rather
than runtime, however this only saved a iscoroutne check. It allows
the weirdness of the Blueprint and Scaffold ensure_sync methods to be
removed.

Switching to runtime ensure_sync usage provides a method for
extensions to also support async, as now documented.
It is better to encourage users to utilise the app ensure_sync method
(or the newely added async_to_sync method) so that any extensions that
alter these methods take affect throughout the users code.

With the helper method users code fix parts of their code to the
asgiref async_to_sync ignoring any extension changes.
updates:
- [github.com/asottile/pyupgrade: v2.13.0 → v2.14.0](asottile/pyupgrade@v2.13.0...v2.14.0)
- [github.com/psf/black: 21.4b0 → 21.4b2](psf/black@21.4b0...21.4b2)
updates:
- [github.com/asottile/pyupgrade: v2.14.0 → v2.15.0](asottile/pyupgrade@v2.14.0...v2.15.0)
- [github.com/psf/black: 21.4b2 → 21.5b1](psf/black@21.4b2...21.5b1)
- [github.com/PyCQA/flake8: 3.9.1 → 3.9.2](PyCQA/flake8@3.9.1...3.9.2)
Otherwise docs builds are broken due to sphinx-doc/sphinx#9216
Added Google Cloud Run as a Hosted option
Add a deprecation warning for the old name
Re-add filename parameter for send_from_directory
karintou8710 and others added 53 commits October 16, 2021 02:04
Fixes old print statement in signal and SQLite pages
Removes the extra `)` in: `print(secrets.token_hex())`
Correct the actual unescaped character
test against minimum/dev versions of Pallets libraries
Co-authored-by: Evgeny Prigorodov <eprigorodov@gmail.com>
document session object lifetime
document "Adddress already in use" error
The default JSONDecoder adds no extra functionality to `json.loads`, but using a custom class in the function call you off of an optimized fast path in pypy (it adds some overhead in cpython, but I think it's minimal). This change sticks with the default loading behaviour unless the user has specifically opted in to customising it.

Co-authored-by: David Lord <davidism@gmail.com>
Only use a custom JSONDecoder if needed
Fix error message for `after_this_request` when used outside request context
Fix the command for checking port on macOS in server docs
Adding Fish commands to docs
Remove X-XSS-Protection suggestion
updates:
- [github.com/asottile/reorder_python_imports: v2.6.0 → v2.7.1](asottile/reorder-python-imports@v2.6.0...v2.7.1)
- [github.com/psf/black: 21.12b0 → 22.1.0](psf/black@21.12b0...22.1.0)
update requirements, stop using dependabot
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 4.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](actions/setup-python@v2...v4)

---
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>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label May 5, 2023
@SadCheeto SadCheeto closed this May 5, 2023
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot bot commented on behalf of github May 5, 2023

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the dependabot/github_actions/actions/setup-python-4 branch May 5, 2023 16:55