libmagic-rs 0.3.0

A pure-Rust implementation of libmagic for file type identification
Documentation
# .pre-commit-config.yaml

repos:
    # Standard code cleanup hooks (language agnostic)
    - repo: https://github.com/pre-commit/pre-commit-hooks
      rev: v6.0.0
      hooks:
          - id: check-added-large-files
            args: ["--maxkb=10240"]
          - id: check-case-conflict
          - id: check-merge-conflict
          - id: check-illegal-windows-names
          - id: check-json
          - id: check-toml
          - id: check-yaml
            args: [--allow-multiple-documents]
          - id: check-xml
          - id: mixed-line-ending
            args: [--fix=auto]
          - id: check-vcs-permalinks

    - repo: https://github.com/FeryET/pre-commit-rust
      rev: v1.2.1
      hooks:
          - id: fmt
          - id: clippy
          - id: cargo-check
          - id: build

    # GitHub Actions validation
    - repo: https://github.com/rhysd/actionlint
      rev: v1.7.7
      hooks:
          - id: actionlint
            files: ".github/workflows/"
            exclude: ^.github/workflows/release.yml$

    # Shell script validation
    - repo: https://github.com/koalaman/shellcheck-precommit
      rev: v0.11.0
      hooks:
          - id: shellcheck
            exclude: ^.github/workflows/release.yml$

    # Commit message linting (commit-msg only, not blocking push)
    - repo: https://github.com/commitizen-tools/commitizen
      rev: v4.9.1
      hooks:
          - id: commitizen
            stages: [commit-msg]

    - repo: https://github.com/bnjbvr/cargo-machete
      rev: v0.9.1
      hooks:
          - id: cargo-machete

    # Markdown formatting and linting (temporarily disabled due to rust code block formatting issues)
    # - repo: https://github.com/hukkin/mdformat
    #   rev: 0.7.22
    #   hooks:
    #       - id: mdformat
    #         additional_dependencies:
    #             - mdformat-gfm
    #             - mdformat-admon
    #             - mdformat-config
    #             - mdformat-footnote
    #             - mdformat-front-matters
    #             - mdformat-simple-breaks
    #             - mdformat-tables
    #             - mdformat-web
    #             - mdformat-wikilink
    #             - mdformat-gfm-alerts
    #             - mdformat-toc
    #         files: \.(md|mdx)$
    #         exclude: ^target/|

    - repo: https://github.com/DevinR528/cargo-sort
      rev: v2.0.2
      hooks:
          - id: cargo-sort