# Local tools and Python environments
.tools/
.venv/
venv/
__pycache__/
*.py[cod]

# KiCad local/editor state
*.lck
*.kicad_prl
*-backups/
*.bak

# Local manufacturer documents; links and policy are in references/README.md
references/official/

# Stale/intermediate routed board variants, regenerated by the routing flow.
# board_routed.kicad_pcb is the finished deliverable and IS tracked.
hardware/board_prerouted.*
hardware/board_plane_stitched.*
hardware/board_power_routed.*
hardware/board_power_local.*
# kicad-cli finds the schematic for --schematic-parity by matching the board's
# own basename, so board_routed needs a copy of board.kicad_sch beside it.
# It is a byte copy of the tracked original, so it is not tracked itself:
#   cp hardware/board.kicad_sch hardware/board_routed.kicad_sch
#   cp hardware/board.kicad_sym hardware/board_routed.kicad_sym
hardware/board_routed.kicad_sch
hardware/board_routed.kicad_sym

# KiCad writes these when it rescues a symbol; the originals are tracked.
hardware/rescue-backup/

# Routing/build workspace. Keep only the current review deliverables.
outputs/*
!outputs/README.md
!outputs/bom.csv
!outputs/jlcpcb_bom.csv
!outputs/erc_final_reset.rpt
!outputs/drc_final_placement.rpt
!outputs/drc_final_routed.rpt
!outputs/board_final_reset_top.png
!outputs/routing_report.txt
