switch to LazyLock from std (Rust 1.80) #878
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pre-commit | |
on: [push, pull_request] | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
container: | |
image: archlinux | |
strategy: | |
fail-fast: false | |
matrix: | |
hook: [ check-toml, | |
check-yaml, | |
check-merge-conflict, | |
check-case-conflict, | |
detect-private-key, | |
mixed-line-ending, | |
trailing-whitespace, | |
cspell, | |
typos, | |
cargo-fmt, | |
cargo-clippy, | |
cargo-test, | |
verify_icon_files | |
] | |
steps: | |
- name: Get required packages and config git | |
run: | | |
pacman --noconfirm --noprogressbar -Syu base-devel clang git libpipewire libpulse lm_sensors notmuch openssl rsync | |
git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: clippy, rustfmt | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- uses: pre-commit/action@v3.0.1 | |
with: | |
extra_args: ${{ matrix.hook }} --all-files | |