Skip to content

Commit 2d9ce65

Browse files
Remove Clippy and dependency installation from pre-commit workflow
1 parent 323fa7e commit 2d9ce65

2 files changed

Lines changed: 3 additions & 18 deletions

File tree

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,9 @@ jobs:
2424
uses: actions-rs/toolchain@v1
2525
with:
2626
toolchain: stable
27-
components: rustfmt, clippy
27+
components: rustfmt
2828
override: true
2929

30-
- name: Cache Rust dependencies
31-
uses: Swatinem/rust-cache@v2
32-
33-
- name: Install system dependencies
34-
run: |
35-
sudo apt-get update
36-
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
37-
3830
- name: Set up Bun
3931
uses: oven-sh/setup-bun@v2
4032

.pre-commit-config.yaml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,13 @@ repos:
1414
exclude: 'tsconfig.*\.json$'
1515
- id: check-merge-conflict
1616

17-
# Rust formatting, linting and compilation check
17+
# Rust formatting only (clippy/check too heavy for CI)
1818
- repo: local
1919
hooks:
2020
- id: rust-fmt-workspace
2121
name: Rust format (workspace)
2222
entry: cargo fmt
23-
args: ['--all']
24-
language: system
25-
files: '\.rs$'
26-
pass_filenames: false
27-
- id: rust-clippy-workspace
28-
name: Rust clippy (workspace)
29-
entry: cargo clippy
30-
args: ['--workspace', '--no-deps', '--lib', '--bins', '--', '-D', 'warnings']
23+
args: ['--all', '--check']
3124
language: system
3225
files: '\.rs$'
3326
pass_filenames: false

0 commit comments

Comments
 (0)