Skip to content

Commit 179cb3c

Browse files
authored
chore: add pre-commit (#17)
1 parent 1424609 commit 179cb3c

File tree

4 files changed

+41
-5
lines changed

4 files changed

+41
-5
lines changed

.github/dependabot.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,5 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "weekly"
7-
groups:
8-
actions:
9-
patterns:
10-
- "*"
7+
cooldown:
8+
default-days: 7

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,23 @@ concurrency:
2020
permissions: {}
2121

2222
jobs:
23+
lint:
24+
name: Lint
25+
permissions:
26+
contents: read
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
30+
with:
31+
persist-credentials: false
32+
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
33+
with:
34+
python-version: "3.14"
35+
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
36+
2337
llvm-version:
2438
name: Get LLVM version to build
39+
needs: lint
2540
runs-on: ubuntu-slim
2641
permissions:
2742
contents: read

.pre-commit-config.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
repos:
2+
3+
- repo: https://github.com/pre-commit/pre-commit-hooks
4+
rev: v6.0.0
5+
hooks:
6+
- id: check-case-conflict
7+
- id: check-merge-conflict
8+
- id: check-yaml
9+
- id: check-toml
10+
- id: end-of-file-fixer
11+
- id: mixed-line-ending
12+
- id: trailing-whitespace
13+
14+
- repo: https://github.com/codespell-project/codespell
15+
rev: v2.4.1
16+
hooks:
17+
- id: codespell
18+
args: ["-w"]
19+
20+
- repo: https://github.com/zizmorcore/zizmor-pre-commit
21+
rev: v1.19.0
22+
hooks:
23+
- id: zizmor

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
OCI images of statically linked clang/lld
44

5-
This allows native performance builds in otherwise qemu-user runned containers.
5+
This allows native performance builds in otherwise qemu-user ran containers.
66

77
While the sources in this repository uses the MIT license, the resulting image is governed by the LLVM project own license: [Apache License v2.0 with LLVM Exceptions](https://github.com/llvm/llvm-project/blob/main/LICENSE.TXT)

0 commit comments

Comments
 (0)