kibot:
  version: 1

preflight:
  check_zone_fills: true
  run_drc: true
  run_erc: true
  update_xml: true
  set_text_variables:
    - name: COMMIT_DATE_LONG
      command: 'python3 util/rev_info.py git_date'
    - name: COMMIT_DATE
      command: 'python3 util/rev_info.py git_date --short'
    - name: COMMIT_HASH
      command: 'python3 util/rev_info.py git_short_rev'
    - name: RELEASE_VERSION
      command: 'python3 util/rev_info.py git_release_version releases/view_base/'
  filters:
    - filter: 'Lines crossing edge cuts'
      error: 'silk_over_copper'
      regex: 'Line on B.Silkscreen'
    - filter: 'Arc crossing hole'
      error: 'silk_over_copper'
      regex: 'Through hole pad 1'

outputs:
  - name: ibom
    comment: 'Interactive BOM'
    type: ibom
    options:
      dark_mode: true
      netlist_file: '%F.xml'
      extra_fields: 'LCSC,Mouser,Digikey,AliExpress,Note'

  - name: schematic
    type: pdf_sch_print

  - name: 3d
    type: render_3d
    options:
      no_virtual: true
      view: 'top'
      copper: '#99967F'
      board: '#C3BA9B'
      copper: '#99967F'
      zoom: 3
      orthographic: true
      ray_tracing: true
      height: 1024
      width: 1024

  - name: 3d_back
    type: render_3d
    extends: 3d
    options:
      view: 'bottom'
