evlib 0.9.0

Event Camera Data Processing Library
Documentation
repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v6.0.0
    hooks:
      - id: check-added-large-files
        args: ["--maxkb=1000000"]
      - id: check-case-conflict
      - id: check-executables-have-shebangs
      - id: check-merge-conflict
      - id: check-symlinks
      - id: check-toml
      - id: check-yaml
      - id: detect-private-key
      - id: end-of-file-fixer
      - id: mixed-line-ending
        args: ["--fix=lf"]
      - id: trailing-whitespace

  - repo: https://github.com/astral-sh/ruff-pre-commit
    rev: v0.14.0
    hooks:
      # Run the linter
      - id: ruff-check
        args:
          [
            --fix,
            # Ignored rules:
            # A001,A002: Variable names shadowing Python builtins
            # B007: Loop variable not used within loop body
            # B008: Function calls in argument defaults
            # B017: assertRaises(Exception) without specific exception
            # B020: Loop control variable overwritten
            # B028: No explicit stacklevel in warnings
            # B904: Use raise from to specify exception cause
            # C411,C419: Unnecessary list comprehension conversions
            # E402: Module level import not at top of file
            # E501: Line too long
            # E711,E721,E722,E731: Comparison and exception handling style
            # F401: Module imported but unused
            # F811: Redefinition of unused name
            # F821: Undefined name
            # F841: Local variable assigned but never used
            # N: All naming convention rules
            # PT: All pytest-style rules
            # UP008,UP036: Outdated syntax for current Python version
            "--ignore=A001,A002,B007,B008,B017,B020,B028,B904,C411,C419,E402,E711,E721,E722,E731,E501,F401,F811,F821,F841,N,PT,UP008,UP036",
          ]
      # Run the formatter
      - id: ruff-format

  - repo: https://github.com/doublify/pre-commit-rust
    rev: v1.0
    hooks:
      - id: fmt
      - id: cargo-check
      - id: clippy