devbisme / KiField

Edit/insert/delete part fields in KiCad schematics or libraries using a spreadsheet.
MIT License
70 stars 27 forks source link

No range feature implementation and tests #71

Closed scandey closed 3 years ago

scandey commented 3 years ago

Added flag --norange, -nr as new argument in main.py Added internal flag no_range for use in kifield.py Implemented no_range behavior by collapsing all references, exploding the collapsed references, and then joining the resulting sorted and explicit list of references to make a nice string. Added unit test for the edited group_wb method Added two integration tests based on existing tests of grouping and randomizing.

Added self to contributors list. Added a handful of items to .gitignore to cover my environment.

The result passes all of the tests (for Python 2.7 and 3.9, which is what I already had installed). It also seems to consistently work for my overly complex schematic in progress.

Did not edit the readme or rebuild the docs for this pull request, I couldn't figure out how to get the docs to build properly.

(I am happy to squash all those commits down to one if that would be easier to merge)

devbisme commented 3 years ago

Thanks for adding this feature!

To rebuild docs, you should be able to go into the docs directory and use make singlehtml.