Files
OpenList-Desktop/.pre-commit-config.yaml
Kuingsmile 5ade6a2c01 feat: add ci for lint and release , fix several bugs (#5)
* feat: add save_settings_with_update_port command and update related components

* refactor: remove state parameter from API key retrieval and update related functions

* feat: enhance release workflow with tag validation and improve build scripts

* feat: update release workflow to use version input from auto-version workflow

* 📦 Chore(custom): add Clippy configuration for consistent linting across platforms

* chore: add Clippy configuration for consistent linting across platforms

* 🐛 Fix(custom): fix ci

* 🚧 WIP(custom): fix clippy error

* 🐛 Fix(custom): add default openlist and rclone version

* 🚧 WIP(custom): fix clippy errors

* 🚧 WIP(custom): fix clippy errors

* 🐛 Fix(custom): fix ci bugs
2025-06-28 13:06:32 +08:00

26 lines
673 B
YAML

# Pre-commit hook configuration
# Install with: yarn add -D husky lint-staged
# Then run: npx husky install
repos:
- repo: local
hooks:
- id: frontend-lint
name: Frontend Lint
entry: yarn lint:fix
language: system
files: \.(ts|vue|js)$
- id: rust-fmt
name: Rust Format
entry: bash -c 'cd src-tauri && cargo fmt --all'
language: system
files: \.rs$
- id: rust-clippy
name: Rust Clippy
entry: bash -c 'cd src-tauri && cargo clippy --all-targets --all-features -- -D warnings'
language: system
files: \.rs$
pass_filenames: false