Skip to content

Commit 86160c0

Browse files
committed
chore: add zizmor
1 parent d5a8d15 commit 86160c0

5 files changed

Lines changed: 40 additions & 9 deletions

File tree

‎.github/workflows/code-check.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ permissions:
1818

1919
jobs:
2020
test:
21-
runs-on: ${{ matrix.os }}
21+
name: Tests
22+
runs-on: ubuntu-latest
2223
strategy:
2324
matrix:
24-
os: [ubuntu-latest] # eventually add `windows-latest` and `macos-latest`
2525
python-version: [ "3.11", "3.12", "3.13", "3.14" ]
26+
fail-fast: true
2627
services:
2728
mongodb:
2829
image: mongo:7
@@ -38,14 +39,13 @@ jobs:
3839
--health-timeout=5s
3940
--health-retries=10
4041
steps:
41-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
42+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
4243
with:
4344
persist-credentials: false
4445
- id: setup-uv
45-
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
46+
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
4647
with:
4748
enable-cache: true
48-
cache-suffix: ${{ matrix.python-version }}
4949
version: "latest"
5050
python-version: ${{ matrix.python-version }}
5151
- name: Install Dependencies

‎.github/workflows/release.yml‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@ jobs:
1515
permissions:
1616
contents: read
1717
steps:
18-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
18+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
1919
with:
2020
persist-credentials: false
21-
- uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
21+
- id: setup-uv
22+
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
2223
with:
2324
enable-cache: false
2425
python-version: "3.12"
2526
version: "latest"
2627
- run: uv version "${GITHUB_REF_NAME}"
2728
- run: uv build
28-
- run: uv publish --trusted-publishing always
29+
- run: uv publish --trusted-publishing always # zizmor: ignore[use-trusted-publishing]

‎.pre-commit-config.yaml‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ repos:
66
- id: end-of-file-fixer
77

88
- repo: https://github.com/crate-ci/typos
9-
rev: v1.38.1
9+
rev: v1.50.2
1010
hooks:
1111
- id: typos
1212

@@ -39,3 +39,12 @@ repos:
3939
- "check"
4040
- ./src/taskiq_mongodb
4141
- ./tests
42+
43+
- id: zizmor
44+
name: zizmor
45+
language: python
46+
entry: uv run --active --frozen zizmor .
47+
files: ^\.github
48+
require_serial: true
49+
verbose: true
50+
pass_filenames: false

‎pyproject.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ dev = [
4848
"prek>=0.5.3",
4949
"ruff>=0.16.8",
5050
"ty>=0.0.81",
51+
"zizmor>=1.30.1",
5152
]
5253
test = [
5354
"pytest>=9.1.1",

‎uv.lock‎

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)