Skip to content

Commit b78b5a2

Browse files
committed
Merge branch 'stable'
2 parents f61172b + e785166 commit b78b5a2

21 files changed

Lines changed: 89 additions & 112 deletions

.github/workflows/pre-commit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
11-
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
11+
- uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
1212
with:
1313
python-version: 3.x
1414
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1

.github/workflows/publish.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
hash: ${{ steps.hash.outputs.hash }}
1111
steps:
1212
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
13-
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
13+
- uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
1414
with:
1515
python-version: '3.x'
1616
cache: pip
@@ -23,7 +23,7 @@ jobs:
2323
- name: generate hash
2424
id: hash
2525
run: cd dist && echo "hash=$(sha256sum * | base64 -w0)" >> $GITHUB_OUTPUT
26-
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
26+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
2727
with:
2828
path: ./dist
2929
provenance:
@@ -33,7 +33,7 @@ jobs:
3333
id-token: write
3434
contents: write
3535
# Can't pin with hash due to how this workflow works.
36-
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v2.0.0
36+
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v2.1.0
3737
with:
3838
base64-subjects: ${{ needs.build.outputs.hash }}
3939
create-release:
@@ -44,7 +44,7 @@ jobs:
4444
permissions:
4545
contents: write
4646
steps:
47-
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
47+
- uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
4848
- name: create release
4949
run: >
5050
gh release create --draft --repo ${{ github.repository }}
@@ -63,7 +63,7 @@ jobs:
6363
permissions:
6464
id-token: write
6565
steps:
66-
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
67-
- uses: pypa/gh-action-pypi-publish@15c56dba361d8335944d31a2ecd17d700fc7bcbc # v1.12.2
66+
- uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
67+
- uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
6868
with:
6969
packages-dir: artifact/

.github/workflows/tests.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- {name: Development Versions, python: '3.9', tox: py-dev}
2626
steps:
2727
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
28-
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
28+
- uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
2929
with:
3030
python-version: ${{ matrix.python }}
3131
allow-prereleases: true
@@ -37,13 +37,13 @@ jobs:
3737
runs-on: ubuntu-latest
3838
steps:
3939
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
40-
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
40+
- uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
4141
with:
4242
python-version: '3.x'
4343
cache: pip
4444
cache-dependency-path: requirements*/*.txt
4545
- name: cache mypy
46-
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
46+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
4747
with:
4848
path: ./.mypy_cache
4949
key: mypy|${{ hashFiles('pyproject.toml') }}

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.7.3
3+
rev: v0.11.2
44
hooks:
55
- id: ruff
66
- id: ruff-format

.readthedocs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ python:
99
- method: pip
1010
path: .
1111
sphinx:
12+
configuration: docs/conf.py
1213
builder: dirhtml
1314
fail_on_warning: true

CHANGES.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ Version 3.1.1
1212
Unreleased
1313

1414
- Fix type hint for `cli_runner.invoke`. :issue:`5645`
15+
- ``flask --help`` loads the app and plugins first to make sure all commands
16+
are shown. :issue:5673`
17+
- Mark sans-io base class as being able to handle views that return
18+
``AsyncIterable``. This is not accurate for Flask, but makes typing easier
19+
for Quart. :pr:`5659`
1520

1621

1722
Version 3.1.0
@@ -113,6 +118,7 @@ Released 2023-05-01
113118

114119
- Set ``Vary: Cookie`` header when the session is accessed, modified, or refreshed.
115120
- Update Werkzeug requirement to >=2.3.3 to apply recent bug fixes.
121+
:ghsa:`m2qf-hxjv-5gpq`
116122

117123

118124
Version 2.3.1

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
extlinks = {
2727
"issue": ("https://github.com/pallets/flask/issues/%s", "#%s"),
2828
"pr": ("https://github.com/pallets/flask/pull/%s", "#%s"),
29+
"ghsa": ("https://github.com/pallets/flask/security/advisories/GHSA-%s", "GHSA-%s"),
2930
}
3031
intersphinx_mapping = {
3132
"python": ("https://docs.python.org/3/", None),

docs/patterns/appfactories.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ to the factory like this:
9999

100100
.. code-block:: text
101101
102-
$ flask --app hello:create_app(local_auth=True) run
102+
$ flask --app 'hello:create_app(local_auth=True)' run
103103
104-
Then the ``create_app`` factory in ``myapp`` is called with the keyword
104+
Then the ``create_app`` factory in ``hello`` is called with the keyword
105105
argument ``local_auth=True``. See :doc:`/cli` for more detail.
106106

107107
Factory Improvements

docs/patterns/favicon.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@ the root path of the domain you either need to configure the web server to
2424
serve the icon at the root or if you can't do that you're out of luck. If
2525
however your application is the root you can simply route a redirect::
2626

27-
app.add_url_rule('/favicon.ico',
28-
redirect_to=url_for('static', filename='favicon.ico'))
27+
app.add_url_rule(
28+
"/favicon.ico",
29+
endpoint="favicon",
30+
redirect_to=url_for("static", filename="favicon.ico"),
31+
)
2932

3033
If you want to save the extra redirect request you can also write a view
3134
using :func:`~flask.send_from_directory`::

docs/patterns/mongoengine.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Queries
8080
Use the class ``objects`` attribute to make queries. A keyword argument
8181
looks for an equal value on the field. ::
8282

83-
bttf = Movies.objects(title="Back To The Future").get_or_404()
83+
bttf = Movie.objects(title="Back To The Future").get_or_404()
8484

8585
Query operators may be used by concatenating them with the field name
8686
using a double-underscore. ``objects``, and queries returned by

0 commit comments

Comments
 (0)