mirror of
https://github.com/Xinrea/bili-shadowreplay.git
synced 2025-11-24 20:15:34 +08:00
* feat: huya account support * refactor: recorder * fix: first segment ts * refactor: seperate crate * feat: general hls recorder * feat: auto end playlist for archives * feat: handle bilibili ts stream * fix(bilibili): ts stream only allowed * feat(huya): huya recorder
47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
fail_fast: true
|
|
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v6.0.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
exclude: '(\.json$|public/)'
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: cargo-fmt
|
|
name: cargo fmt
|
|
entry: cargo fmt --manifest-path src-tauri/Cargo.toml --
|
|
language: system
|
|
types: [rust]
|
|
pass_filenames: false # This makes it a lot faster
|
|
|
|
- id: cargo-clippy
|
|
name: cargo clippy
|
|
language: system
|
|
types: [rust]
|
|
pass_filenames: false
|
|
entry: cargo clippy --manifest-path src-tauri/Cargo.toml
|
|
|
|
- id: cargo-clippy-headless
|
|
name: cargo clippy headless
|
|
language: system
|
|
types: [rust]
|
|
pass_filenames: false
|
|
entry: cargo clippy --manifest-path src-tauri/Cargo.toml --no-default-features --features headless
|
|
|
|
- id: cargo-test
|
|
name: cargo test
|
|
language: system
|
|
types: [rust]
|
|
pass_filenames: false
|
|
entry: cargo test --manifest-path src-tauri/Cargo.toml
|
|
|
|
- id: cargo-test-headless
|
|
name: cargo test headless
|
|
language: system
|
|
types: [rust]
|
|
pass_filenames: false
|
|
entry: cargo test --manifest-path src-tauri/Cargo.toml --no-default-features --features headless
|