Skip to content

Commit 339bebf

Browse files
committed
Update pre-commit hooks
1 parent 7b79d4a commit 339bebf

4 files changed

Lines changed: 36 additions & 32 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,17 @@ jobs:
5555

5656
runs-on: ubuntu-latest
5757

58+
permissions:
59+
contents: read
60+
id-token: write # for codecov upload
61+
5862
steps:
59-
- uses: actions/checkout@v6
63+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
6064
with:
6165
persist-credentials: false
6266

6367
- name: Set up Python
64-
uses: actions/setup-python@v6
68+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
6569
with:
6670
python-version: ${{ matrix.python-version }}
6771
allow-prereleases: true
@@ -98,7 +102,7 @@ jobs:
98102
github.repository == 'python/typing_extensions'
99103
&& (github.event_name == 'push' || github.event_name == 'pull_request')
100104
with:
101-
token: ${{ secrets.CODECOV_ORG_TOKEN }}
105+
use_oidc: true
102106
flags: ${{ matrix.python-version }}
103107
directory: src
104108
fail_ci_if_error: true
@@ -122,7 +126,7 @@ jobs:
122126
issues: write
123127

124128
steps:
125-
- uses: actions/github-script@v9
129+
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
126130
with:
127131
github-token: ${{ secrets.GITHUB_TOKEN }}
128132
script: |

.github/workflows/publish.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ jobs:
2323
runs-on: ubuntu-latest
2424

2525
steps:
26-
- uses: actions/checkout@v6
26+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2727
with:
2828
persist-credentials: false
2929
- name: Set up Python
30-
uses: actions/setup-python@v6
30+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
3131
with:
3232
python-version: "3.x"
3333
- name: Check package metadata
@@ -43,7 +43,7 @@ jobs:
4343
- name: Build a binary wheel and a source tarball
4444
run: python -m build
4545
- name: Store the distribution packages
46-
uses: actions/upload-artifact@v7
46+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
4747
with:
4848
name: python-package-distributions
4949
path: dist/
@@ -55,15 +55,15 @@ jobs:
5555
runs-on: ubuntu-latest
5656

5757
steps:
58-
- uses: actions/checkout@v6
58+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
5959
with:
6060
persist-credentials: false
6161
- name: Set up Python
62-
uses: actions/setup-python@v6
62+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
6363
with:
6464
python-version: "3.x"
6565
- name: Download all the dists
66-
uses: actions/download-artifact@v8
66+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
6767
with:
6868
name: python-package-distributions
6969
path: dist/
@@ -84,15 +84,15 @@ jobs:
8484
runs-on: ubuntu-latest
8585

8686
steps:
87-
- uses: actions/checkout@v6
87+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
8888
with:
8989
persist-credentials: false
9090
- name: Set up Python
91-
uses: actions/setup-python@v6
91+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
9292
with:
9393
python-version: "3.x"
9494
- name: Download all the dists
95-
uses: actions/download-artifact@v8
95+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
9696
with:
9797
name: python-package-distributions
9898
path: dist/
@@ -112,15 +112,15 @@ jobs:
112112
runs-on: ubuntu-latest
113113

114114
steps:
115-
- uses: actions/checkout@v6
115+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
116116
with:
117117
persist-credentials: false
118118
- name: Set up Python
119-
uses: actions/setup-python@v6
119+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
120120
with:
121121
python-version: "3.x"
122122
- name: Download all the dists
123-
uses: actions/download-artifact@v8
123+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
124124
with:
125125
name: python-package-distributions
126126
path: dist/
@@ -152,7 +152,7 @@ jobs:
152152

153153
steps:
154154
- name: Download all the dists
155-
uses: actions/download-artifact@v8
155+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
156156
with:
157157
name: python-package-distributions
158158
path: dist/

.github/workflows/third_party.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
- name: Checkout pydantic
5959
run: git clone --depth=1 https://github.com/pydantic/pydantic.git || git clone --depth=1 https://github.com/pydantic/pydantic.git
6060
- name: Checkout typing_extensions
61-
uses: actions/checkout@v6
61+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
6262
with:
6363
path: typing-extensions-latest
6464
persist-credentials: false
@@ -91,7 +91,7 @@ jobs:
9191
- name: Checkout typing_inspect
9292
run: git clone --depth=1 https://github.com/ilevkivskyi/typing_inspect.git || git clone --depth=1 https://github.com/ilevkivskyi/typing_inspect.git
9393
- name: Checkout typing_extensions
94-
uses: actions/checkout@v6
94+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
9595
with:
9696
path: typing-extensions-latest
9797
persist-credentials: false
@@ -126,7 +126,7 @@ jobs:
126126
- name: Check out pycroscope
127127
run: git clone --depth=1 https://github.com/JelleZijlstra/pycroscope.git || git clone --depth=1 https://github.com/JelleZijlstra/pycroscope.git
128128
- name: Checkout typing_extensions
129-
uses: actions/checkout@v6
129+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
130130
with:
131131
path: typing-extensions-latest
132132
persist-credentials: false
@@ -161,7 +161,7 @@ jobs:
161161
- name: Check out typeguard
162162
run: git clone --depth=1 https://github.com/agronholm/typeguard.git || git clone --depth=1 https://github.com/agronholm/typeguard.git
163163
- name: Checkout typing_extensions
164-
uses: actions/checkout@v6
164+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
165165
with:
166166
path: typing-extensions-latest
167167
persist-credentials: false
@@ -199,7 +199,7 @@ jobs:
199199
- name: Check out typed-argument-parser
200200
run: git clone --depth=1 https://github.com/swansonk14/typed-argument-parser.git || git clone --depth=1 https://github.com/swansonk14/typed-argument-parser.git
201201
- name: Checkout typing_extensions
202-
uses: actions/checkout@v6
202+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
203203
with:
204204
path: typing-extensions-latest
205205
persist-credentials: false
@@ -242,7 +242,7 @@ jobs:
242242
- name: Checkout mypy for stubtest and mypyc tests
243243
run: git clone --depth=1 https://github.com/python/mypy.git || git clone --depth=1 https://github.com/python/mypy.git
244244
- name: Checkout typing_extensions
245-
uses: actions/checkout@v6
245+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
246246
with:
247247
path: typing-extensions-latest
248248
persist-credentials: false
@@ -278,7 +278,7 @@ jobs:
278278
- name: Checkout cattrs
279279
run: git clone --depth=1 https://github.com/python-attrs/cattrs.git || git clone --depth=1 https://github.com/python-attrs/cattrs.git
280280
- name: Checkout typing_extensions
281-
uses: actions/checkout@v6
281+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
282282
with:
283283
path: typing-extensions-latest
284284
persist-credentials: false
@@ -316,7 +316,7 @@ jobs:
316316
- name: Checkout sqlalchemy
317317
run: git clone -b ${{ matrix.checkout-ref }} --depth=1 https://github.com/sqlalchemy/sqlalchemy.git || git clone -b ${{ matrix.checkout-ref }} --depth=1 https://github.com/sqlalchemy/sqlalchemy.git
318318
- name: Checkout typing_extensions
319-
uses: actions/checkout@v6
319+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
320320
with:
321321
path: typing-extensions-latest
322322
persist-credentials: false
@@ -348,7 +348,7 @@ jobs:
348348
- name: Checkout litestar
349349
run: git clone --depth=1 https://github.com/litestar-org/litestar.git || git clone --depth=1 https://github.com/litestar-org/litestar.git
350350
- name: Checkout typing_extensions
351-
uses: actions/checkout@v6
351+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
352352
with:
353353
path: typing-extensions-latest
354354
persist-credentials: false
@@ -405,7 +405,7 @@ jobs:
405405
issues: write
406406

407407
steps:
408-
- uses: actions/github-script@v9
408+
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
409409
with:
410410
github-token: ${{ secrets.GITHUB_TOKEN }}
411411
script: |

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
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.14.10
3+
rev: v0.15.9
44
hooks:
55
- id: ruff
66
- repo: https://github.com/pre-commit/pre-commit-hooks
@@ -21,18 +21,18 @@ repos:
2121
hooks:
2222
- id: sphinx-lint
2323
- repo: https://github.com/python-jsonschema/check-jsonschema
24-
rev: 0.36.0
24+
rev: 0.37.1
2525
hooks:
2626
- id: check-dependabot
2727
- id: check-github-workflows
2828
- id: check-readthedocs
2929
- repo: https://github.com/abravalheri/validate-pyproject
30-
rev: v0.24.1
30+
rev: v0.25
3131
hooks:
3232
- id: validate-pyproject
3333
additional_dependencies: ["validate-pyproject-schema-store[all]"]
3434
- repo: https://github.com/rhysd/actionlint
35-
rev: v1.7.10
35+
rev: v1.7.12
3636
hooks:
3737
- id: actionlint
3838
additional_dependencies:
@@ -41,7 +41,7 @@ repos:
4141
# but the integration only works if shellcheck is installed
4242
- "github.com/wasilibs/go-shellcheck/cmd/shellcheck@v0.11.1"
4343
- repo: https://github.com/woodruffw/zizmor-pre-commit
44-
rev: v1.19.0
44+
rev: v1.23.1
4545
hooks:
4646
- id: zizmor
4747
- repo: meta

0 commit comments

Comments
 (0)