INTI-CMNB / KiBot

KiCad automation utility
GNU Affero General Public License v3.0
571 stars 67 forks source link

[FEATURE] Add category option to new erc/drc preflights #647

Closed tlbruns closed 3 months ago

tlbruns commented 3 months ago

Is your feature request related to a problem? Please describe. It would be nice to specify the navigate_results category for the new erc/drc preflights in the same manner as other outputs. In my case, I would like to put erc/drc outputs on a single Navigate Results page rather than one under Schematic and one under PCB.

Describe the solution you'd like Add a category option to the erc and drc preflights. For example:

erc:
    dir: ./reports
    category: docs`

Describe alternatives you've considered I can achieve the desired behavior by modifying the hardcoded category in the source files (pre_erc.py & pre_drc.py), but for obvious reasons it would be better if this option was available via the preflight config file.

Thanks for all you work on KiBot, I can't tell you how many hours of work it's already saved me!

set-soft commented 3 months ago

Hi @tlbruns ! The above patch adds category to erc and drc. Can you try it?

tlbruns commented 3 months ago

That works perfect, thanks! (tested with: ghcr.io/inti-cmnb/kicad8_auto_full:dev_1.7.1-830e6ea_k8.0.3_d_sid_b3.5.1)