Skip to content

Commit f89d4a8

Browse files
authored
dev: Update pre-commit hooks, uv lockfile (#317)
* pre-commit: Bump hooks, explicitly set default permissions for actions This is a new addition to zizmor. * lockfile: Update deps By running `uv lock --upgrade --refresh`.
1 parent 1bf0d54 commit f89d4a8

File tree

4 files changed

+661
-657
lines changed

4 files changed

+661
-657
lines changed

.github/workflows/python.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
branches:
99
- main
1010

11+
permissions: {}
12+
1113
jobs:
1214
lint:
1315
name: Run code checks and formatting hooks

.github/workflows/release.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
types:
77
- published
88

9+
permissions: {}
10+
911
jobs:
1012
build:
1113
name: Build source distribution and wheel

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ repos:
1010
- id: end-of-file-fixer
1111
- id: mixed-line-ending
1212
- repo: https://github.com/pre-commit/mirrors-mypy
13-
rev: v1.14.1
13+
rev: v1.15.0
1414
hooks:
1515
# See https://github.com/pre-commit/mirrors-mypy/blob/main/.pre-commit-hooks.yaml
1616
- id: mypy
1717
types_or: [python, pyi]
1818
args: [--ignore-missing-imports, --scripts-are-modules]
1919
- repo: https://github.com/astral-sh/ruff-pre-commit
20-
rev: v0.9.1
20+
rev: v0.9.10
2121
hooks:
2222
- id: ruff
2323
args: [--fix, --exit-non-zero-on-fix]
@@ -31,12 +31,12 @@ repos:
3131
# - id: pydoclint
3232
# args: [--check-class-attributes=False]
3333
- repo: https://github.com/astral-sh/uv-pre-commit
34-
rev: 0.5.20
34+
rev: 0.6.6
3535
hooks:
3636
- id: uv-lock
3737
name: Lock project dependencies
3838
- repo: https://github.com/woodruffw/zizmor-pre-commit
39-
rev: v1.0.1
39+
rev: v1.5.1
4040
hooks:
4141
- id: zizmor
4242
args: [--min-severity=medium]

0 commit comments

Comments
 (0)