Skip to content

Commit 0464101

Browse files
hugovkezio-melotti
andauthored
Replace pre-commit with prek in CI and add Dependabot (#324)
Co-authored-by: Ezio Melotti <[email protected]>
1 parent 4becd18 commit 0464101

File tree

4 files changed

+47
-16
lines changed

4 files changed

+47
-16
lines changed

.github/dependabot.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: monthly
7+
assignees:
8+
- "ezio-melotti"
9+
groups:
10+
actions:
11+
patterns:
12+
- "*"
13+
cooldown:
14+
default-days: 7
15+
16+
- package-ecosystem: pip
17+
directory: "/"
18+
schedule:
19+
interval: monthly
20+
assignees:
21+
- "ezio-melotti"
22+
groups:
23+
pip:
24+
patterns:
25+
- "*"
26+
cooldown:
27+
default-days: 7

.github/workflows/lint.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,14 @@ permissions: {}
77
env:
88
FORCE_COLOR: 1
99
PIP_DISABLE_PIP_VERSION_CHECK: 1
10+
RUFF_OUTPUT_FORMAT: github
1011

1112
jobs:
1213
lint:
1314
runs-on: ubuntu-latest
1415

1516
steps:
16-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v6
1718
with:
1819
persist-credentials: false
19-
- uses: actions/setup-python@v5
20-
with:
21-
python-version: "3.x"
22-
cache: pip
23-
- uses: pre-commit/[email protected]
20+
- uses: j178/prek-action@v1

.github/zizmor.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# https://docs.zizmor.sh/configuration/
2+
rules:
3+
unpinned-uses:
4+
config:
5+
policies:
6+
"*": ref-pin

.pre-commit-config.yaml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v5.0.0
3+
rev: v6.0.0
44
hooks:
55
- id: check-added-large-files
66
- id: check-case-conflict
@@ -14,44 +14,45 @@ repos:
1414
- id: trailing-whitespace
1515

1616
- repo: https://github.com/astral-sh/ruff-pre-commit
17-
rev: v0.11.5
17+
rev: v0.14.10
1818
hooks:
19-
- id: ruff
19+
- id: ruff-check
2020
args: [--fix]
2121
- id: ruff-format
2222

2323
- repo: https://github.com/python-jsonschema/check-jsonschema
24-
rev: 0.31.1
24+
rev: 0.36.0
2525
hooks:
26+
- id: check-dependabot
2627
- id: check-github-workflows
2728

2829
- repo: https://github.com/rhysd/actionlint
29-
rev: v1.7.7
30+
rev: v1.7.10
3031
hooks:
3132
- id: actionlint
3233

3334
- repo: https://github.com/woodruffw/zizmor-pre-commit
34-
rev: v1.3.1
35+
rev: v1.19.0
3536
hooks:
3637
- id: zizmor
3738

3839
- repo: https://github.com/tox-dev/pyproject-fmt
39-
rev: v2.5.0
40+
rev: v2.11.1
4041
hooks:
4142
- id: pyproject-fmt
4243

4344
- repo: https://github.com/abravalheri/validate-pyproject
44-
rev: v0.23
45+
rev: v0.24.1
4546
hooks:
4647
- id: validate-pyproject
4748

4849
- repo: https://github.com/tox-dev/tox-ini-fmt
49-
rev: 1.5.0
50+
rev: 1.7.1
5051
hooks:
5152
- id: tox-ini-fmt
5253

5354
- repo: https://github.com/rbubley/mirrors-prettier
54-
rev: v3.5.1
55+
rev: v3.7.4
5556
hooks:
5657
- id: prettier
5758
files: templates/switchers.js

0 commit comments

Comments
 (0)