Skip to content

Commit 2fbe1f6

Browse files
committed
Use zizmor and various CI updates
1 parent 84b3810 commit 2fbe1f6

6 files changed

Lines changed: 26 additions & 12 deletions

File tree

‎.github/workflows/label-check.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
- unlabeled
1010
- synchronize
1111

12+
permissions: {}
13+
1214
env:
1315
LABELS: ${{ join( github.event.pull_request.labels.*.name, ' ' ) }}
1416

‎.github/workflows/milestone-merged-prs.yaml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
name: Milestone
22

33
on:
4-
pull_request_target:
4+
pull_request_target: # zizmor: ignore[dangerous-triggers]
55
types:
66
- closed
77
branches:
88
- "main"
99

10+
permissions: {}
11+
1012
jobs:
1113
milestone_pr:
1214
name: attach to PR

‎.github/workflows/release.yml‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ jobs:
1414
# IMPORTANT: this permission is mandatory for trusted publishing
1515
id-token: write
1616
steps:
17-
- uses: actions/checkout@v5
17+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
1818
with:
1919
fetch-depth: 0
20+
persist-credentials: false
2021

21-
- uses: actions/setup-python@v6
22+
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
2223
name: Install Python
2324
with:
2425
python-version: "3.11"
@@ -30,4 +31,4 @@ jobs:
3031
python -m build --sdist --wheel
3132
3233
- name: Publish package distributions to PyPI
33-
uses: pypa/gh-action-pypi-publish@release/v1
34+
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2

‎.github/workflows/test.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ jobs:
2424
os: [ubuntu-latest, windows-latest, macos-latest]
2525
runs-on: ${{ matrix.os }}
2626
steps:
27-
- uses: actions/checkout@v5
28-
- uses: actions/setup-python@v6
27+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
28+
with:
29+
persist-credentials: false
30+
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
2931
id: setup-python
3032
with:
3133
python-version: ${{ matrix.python_version }}

‎.pre-commit-config.yaml‎

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ repos:
2525
- id: trailing-whitespace
2626

2727
- repo: https://github.com/rbubley/mirrors-prettier
28-
rev: 14abee445aea04b39069c19b4bd54efff6775819 # frozen: v3.7.4
28+
rev: ef4a397f916211b4a39ccf9d3d9cbb6562157251 # frozen: v3.9.9
2929
hooks:
3030
- id: prettier
3131
files: \.(css|html|md|yml|yaml|toml)
3232
args: [--prose-wrap=preserve]
3333

3434
- repo: https://github.com/astral-sh/ruff-pre-commit
35-
rev: 5ba58aca0bd5bc7c0e1c0fc45af2e88d6a2bde83 # frozen: v0.14.10
35+
rev: f12be1ebaa5351c1fc76472de98db2c3446c8253 # frozen: v0.16.10
3636
hooks:
3737
- id: ruff
3838
args: ["--fix", "--show-fixes", "--exit-non-zero-on-fix"]
@@ -44,16 +44,23 @@ repos:
4444
- id: blacken-docs
4545

4646
- repo: https://github.com/pre-commit/mirrors-mypy
47-
rev: a66e98df7b4aeeb3724184b332785976d062b92e # frozen: v1.19.1
47+
rev: 2834ec6639549dd6796205c8f011dedcd587288b # frozen: v2.4.0
4848
hooks:
4949
- id: mypy
5050
exclude: |
5151
(?x)(
5252
^example_pkg_src/
5353
)
5454
55+
- repo: https://github.com/zizmorcore/zizmor-pre-commit
56+
rev: fa412071e4f5d44d44f9e365f4676f9df92456a2 # frozen: v1.30.1
57+
hooks:
58+
# Run the linter.
59+
- id: zizmor
60+
args: [--no-progress, --fix]
61+
5562
- repo: https://github.com/codespell-project/codespell
56-
rev: "63c8f8312b7559622c0d82815639671ae42132ac" # frozen: v2.4.1
63+
rev: "57b21406f092110c18776e39b0bda50d37c945c8" # frozen: v2.4.3
5764
hooks:
5865
- id: codespell
5966
args: ["-L", "ans"]

‎pyproject.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ classifiers = [
2727
"Programming Language :: Python :: 3 :: Only",
2828
]
2929
dependencies = [
30-
"click>=8,!=8.3.0,<8.4",
30+
"click>=8,!=8.3.0,<8.5",
3131
"tomli; python_version < '3.11'",
3232
"colorama; platform_system == 'Windows'",
3333
"importlib_metadata >= 7"
@@ -38,7 +38,7 @@ dynamic = ['version']
3838
spin = "spin.__main__:main"
3939

4040
[project.optional-dependencies]
41-
lint = ["pre-commit == 4.3.0"]
41+
lint = ["pre-commit == 4.6.0"]
4242
dev = ["changelist == 0.5"]
4343

4444
[project.urls]

0 commit comments

Comments
 (0)