repos:
  - repo: local
    hooks:
      - id: generate-library-init
        name: Generate library init
        entry: tools/library/gen_F.py
        language: python
        files: src/faebryk/library/.*.py
  - repo: https://github.com/astral-sh/ruff-pre-commit
    # Ruff version.
    rev: v0.14.14
    hooks:
      - id: ruff
        # generated by ANTLR4
        exclude: src/atopile/compiler/parser/.*.py
      - id: ruff-format
        # generated by ANTLR4
        exclude: src/atopile/compiler/parser/.*.py
  - repo: https://github.com/astral-sh/uv-pre-commit
    rev: 0.9.28
    hooks:
      - id: uv-lock
