Skip to content

Commit e974128

Browse files
committed
Merge branch 'stable'
2 parents a5f9742 + f04c5e6 commit e974128

File tree

13 files changed

+220
-233
lines changed

13 files changed

+220
-233
lines changed

.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: astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca # v6.0.1
11+
- uses: astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb # v6.1.0
1212
with:
1313
enable-cache: true
1414
prune-cache: false

.github/workflows/publish.yaml

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@ on:
55
jobs:
66
build:
77
runs-on: ubuntu-latest
8-
outputs:
9-
hash: ${{ steps.hash.outputs.hash }}
108
steps:
119
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
12-
- uses: astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca # v6.0.1
10+
- uses: astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb # v6.1.0
1311
with:
1412
enable-cache: true
1513
prune-cache: false
@@ -18,38 +16,22 @@ jobs:
1816
python-version-file: pyproject.toml
1917
- run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
2018
- run: uv build
21-
- name: generate hash
22-
id: hash
23-
run: cd dist && echo "hash=$(sha256sum * | base64 -w0)" >> $GITHUB_OUTPUT
2419
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
2520
with:
2621
path: ./dist
27-
provenance:
28-
needs: [build]
29-
permissions:
30-
actions: read
31-
id-token: write
32-
contents: write
33-
# Can't pin with hash due to how this workflow works.
34-
uses: slsa-framework/slsa-github-generator/.github/workflows/[email protected]
35-
with:
36-
base64-subjects: ${{ needs.build.outputs.hash }}
3722
create-release:
38-
needs: [provenance]
23+
needs: [build]
3924
runs-on: ubuntu-latest
4025
permissions:
4126
contents: write
4227
steps:
4328
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
4429
- name: create release
45-
run: >
46-
gh release create --draft --repo ${{ github.repository }}
47-
${{ github.ref_name }}
48-
*.intoto.jsonl/* artifact/*
30+
run: gh release create --draft --repo ${{ github.repository }} ${{ github.ref_name }} artifact/*
4931
env:
5032
GH_TOKEN: ${{ github.token }}
5133
publish-pypi:
52-
needs: [provenance]
34+
needs: [build]
5335
environment:
5436
name: publish
5537
url: https://pypi.org/project/Flask/${{ github.ref_name }}

.github/workflows/tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- {name: Development Versions, python: '3.10', tox: tests-dev}
2525
steps:
2626
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
27-
- uses: astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca # v6.0.1
27+
- uses: astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb # v6.1.0
2828
with:
2929
enable-cache: true
3030
prune-cache: false
@@ -36,7 +36,7 @@ jobs:
3636
runs-on: ubuntu-latest
3737
steps:
3838
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
39-
- uses: astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca # v6.0.1
39+
- uses: astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb # v6.1.0
4040
with:
4141
enable-cache: true
4242
prune-cache: false

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: 24e02b24b8ab2b7c76225602d13fa60e12d114e6 # frozen: v0.11.9
3+
rev: 9aeda5d1f4bbd212c557da1ea78eca9e8c829e19 # frozen: v0.11.13
44
hooks:
55
- id: ruff
66
- id: ruff-format
77
- repo: https://github.com/astral-sh/uv-pre-commit
8-
rev: 14ac15b122e538e407d036ff45e3895b7cf4a2bf # frozen: 0.7.3
8+
rev: a621b109bab2e7e832d98c88fd3e83399f4e6657 # frozen: 0.7.12
99
hooks:
1010
- id: uv-lock
1111
- repo: https://github.com/pre-commit/pre-commit-hooks

docs/contributing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Contributing
22
============
33

4-
See the Pallets `detailed contributing documentation <_contrib>`_ for many ways
4+
See the Pallets `detailed contributing documentation <contrib_>`_ for many ways
55
to contribute, including reporting issues, requesting features, asking or
66
answering questions, and making PRs.
77

pyproject.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,6 @@ ignore = [
168168
force-single-line = true
169169
order-by-type = false
170170

171-
[tool.gha-update]
172-
tag-only = [
173-
"slsa-framework/slsa-github-generator",
174-
]
175-
176171
[tool.tox]
177172
env_list = [
178173
"py3.13", "py3.12", "py3.11", "py3.10",

src/flask/ctx.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ def do_some_work():
187187
ctx = ctx.copy()
188188

189189
def wrapper(*args: t.Any, **kwargs: t.Any) -> t.Any:
190-
with ctx: # type: ignore[union-attr]
191-
return ctx.app.ensure_sync(f)(*args, **kwargs) # type: ignore[union-attr]
190+
with ctx:
191+
return ctx.app.ensure_sync(f)(*args, **kwargs)
192192

193193
return update_wrapper(wrapper, f) # type: ignore[return-value]
194194

src/flask/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def _prepare_send_file_kwargs(**kwargs: t.Any) -> dict[str, t.Any]:
392392
environ=request.environ,
393393
use_x_sendfile=current_app.config["USE_X_SENDFILE"],
394394
response_class=current_app.response_class,
395-
_root_path=current_app.root_path, # type: ignore
395+
_root_path=current_app.root_path,
396396
)
397397
return kwargs
398398

src/flask/sansio/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ def _check_setup_finished(self, f_name: str) -> None:
423423
)
424424

425425
@cached_property
426-
def name(self) -> str: # type: ignore
426+
def name(self) -> str:
427427
"""The name of the application. This is usually the import name
428428
with the difference that it's guessed from the run file if the
429429
import name is main. This name is used as a display name when

src/flask/sansio/scaffold.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def __init__(
8484
#: to. Do not change this once it is set by the constructor.
8585
self.import_name = import_name
8686

87-
self.static_folder = static_folder # type: ignore
87+
self.static_folder = static_folder
8888
self.static_url_path = static_url_path
8989

9090
#: The path to the templates folder, relative to

0 commit comments

Comments
 (0)