Skip to content

Commit ee7ad40

Browse files
committed
update dev dependencies
1 parent dbc7349 commit ee7ad40

File tree

8 files changed

+1072
-624
lines changed

8 files changed

+1072
-624
lines changed

.github/workflows/pre-commit.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ jobs:
77
main:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
11-
- uses: astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb # v6.1.0
10+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
11+
- uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 # v7.1.4
1212
with:
1313
enable-cache: true
1414
prune-cache: false
15-
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
15+
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
1616
id: setup-python
1717
with:
1818
python-version-file: pyproject.toml
19-
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
19+
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
2020
with:
2121
path: ~/.cache/pre-commit
2222
key: pre-commit|${{ hashFiles('pyproject.toml', '.pre-commit-config.yaml') }}

.github/workflows/publish.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
10-
- uses: astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb # v6.1.0
9+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
10+
- uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 # v7.1.4
1111
with:
1212
enable-cache: true
1313
prune-cache: false
14-
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
14+
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
1515
with:
1616
python-version-file: pyproject.toml
1717
- run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
1818
- run: uv build
19-
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
19+
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
2020
with:
2121
path: ./dist
2222
create-release:
@@ -25,7 +25,7 @@ jobs:
2525
permissions:
2626
contents: write
2727
steps:
28-
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
28+
- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
2929
- name: create release
3030
run: gh release create --draft --repo ${{ github.repository }} ${{ github.ref_name }} artifact/*
3131
env:
@@ -39,7 +39,7 @@ jobs:
3939
permissions:
4040
id-token: write
4141
steps:
42-
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
43-
- uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
42+
- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
43+
- uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
4444
with:
4545
packages-dir: artifact/

.github/workflows/tests.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,28 @@ jobs:
2222
- {python: '3.9'}
2323
- {name: PyPy, python: 'pypy-3.11', tox: pypy3.11}
2424
steps:
25-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26-
- uses: astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb # v6.1.0
25+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
26+
- uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 # v7.1.4
2727
with:
2828
enable-cache: true
2929
prune-cache: false
30-
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
30+
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
3131
with:
3232
python-version: ${{ matrix.python }}
3333
- run: uv run --locked tox run -e ${{ matrix.tox || format('py{0}', matrix.python) }}
3434
typing:
3535
runs-on: ubuntu-latest
3636
steps:
37-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
38-
- uses: astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb # v6.1.0
37+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
38+
- uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 # v7.1.4
3939
with:
4040
enable-cache: true
4141
prune-cache: false
42-
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
42+
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
4343
with:
4444
python-version-file: pyproject.toml
4545
- name: cache mypy
46-
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
46+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
4747
with:
4848
path: ./.mypy_cache
4949
key: mypy|${{ hashFiles('pyproject.toml') }}

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: 9aeda5d1f4bbd212c557da1ea78eca9e8c829e19 # frozen: v0.11.13
3+
rev: fa1ed65ba95bfa7771a71003a9d74402541f5a5c # frozen: v0.14.6
44
hooks:
55
- id: ruff
66
- id: ruff-format
77
- repo: https://github.com/astral-sh/uv-pre-commit
8-
rev: a621b109bab2e7e832d98c88fd3e83399f4e6657 # frozen: 0.7.12
8+
rev: 016d6d8dbc18eb9cc42594297fa8af0c79f6df72 # frozen: 0.9.12
99
hooks:
1010
- id: uv-lock
1111
- repo: https://github.com/pre-commit/pre-commit-hooks
12-
rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # frozen: v5.0.0
12+
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0
1313
hooks:
1414
- id: check-merge-conflict
1515
- id: debug-statements

src/werkzeug/datastructures/mixins.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,9 @@ def pop(
275275
) -> V | T:
276276
modified = key in self
277277
if default is _missing:
278-
rv = super().pop(key)
278+
rv: V | T = super().pop(key)
279279
else:
280-
rv = super().pop(key, default) # type: ignore[arg-type]
280+
rv = super().pop(key, default)
281281
if modified and self.on_update is not None:
282282
self.on_update(self)
283283
return rv
@@ -306,7 +306,7 @@ def update( # type: ignore[override]
306306
**kwargs: V,
307307
) -> None:
308308
if arg is None:
309-
super().update(**kwargs)
309+
super().update(**kwargs) # type: ignore[call-overload]
310310
else:
311311
super().update(arg, **kwargs)
312312

src/werkzeug/datastructures/structures.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def __init__(
190190
if mapping is None:
191191
super().__init__()
192192
elif isinstance(mapping, MultiDict):
193-
super().__init__((k, vs[:]) for k, vs in mapping.lists())
193+
super().__init__((k, vs[:]) for k, vs in mapping.lists()) # type: ignore[misc]
194194
elif isinstance(mapping, cabc.Mapping):
195195
tmp = {}
196196
for key, value in mapping.items():
@@ -708,7 +708,7 @@ def listvalues(self) -> cabc.Iterable[list[V]]:
708708
yield values
709709

710710
def add(self, key: K, value: V) -> None:
711-
dict.setdefault(self, key, []).append(_omd_bucket(self, key, value)) # type: ignore[arg-type,attr-defined]
711+
dict.setdefault(self, key, []).append(_omd_bucket(self, key, value)) # type: ignore[misc]
712712

713713
@t.overload
714714
def getlist(self, key: K) -> list[V]: ...
@@ -789,7 +789,7 @@ def popitem(self) -> tuple[K, V]:
789789
buckets: list[_omd_bucket[K, V]]
790790

791791
try:
792-
key, buckets = dict.popitem(self) # type: ignore[arg-type,assignment]
792+
key, buckets = dict.popitem(self) # type: ignore[arg-type]
793793
except KeyError as e:
794794
raise exceptions.BadRequestKeyError(e.args[0]) from None
795795

@@ -803,7 +803,7 @@ def popitemlist(self) -> tuple[K, list[V]]:
803803
buckets: list[_omd_bucket[K, V]]
804804

805805
try:
806-
key, buckets = dict.popitem(self) # type: ignore[arg-type,assignment]
806+
key, buckets = dict.popitem(self) # type: ignore[arg-type]
807807
except KeyError as e:
808808
raise exceptions.BadRequestKeyError(e.args[0]) from None
809809

src/werkzeug/routing/rules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ def _parts(ops: list[tuple[bool, str]]) -> list[ast.expr]:
776776
ret = [parts[0]]
777777
for p in parts[1:]:
778778
if isinstance(p, ast.Constant) and isinstance(ret[-1], ast.Constant):
779-
ret[-1] = ast.Constant(ret[-1].value + p.value)
779+
ret[-1] = ast.Constant(ret[-1].value + p.value) # type: ignore[operator]
780780
else:
781781
ret.append(p)
782782
return ret

0 commit comments

Comments
 (0)