Commit Graph

227 Commits

Author SHA1 Message Date
Salvador E. Tropea 0d9256fb24 The 'check_zone_fills' option is now independent of 'run_drc'
Implemented in a different way.
For all internal commands now we use Python bindings to fill the zones as
suggested by @arikrupnik in johnbeard/kiplot#11
For 'print_pcb' now we ask KiCad to do it before printing (needs v1.4.1)
2020-06-14 15:12:56 -03:00
Salvador E. Tropea 406a9ab374 Fixed gzip exception name. 2020-06-14 12:02:15 -03:00
Salvador E. Tropea 4101f69cd4 Added support for compressed YAML files. 2020-06-14 11:05:08 -03:00
Salvador E. Tropea 61f1ebbab2 Better debug info, fixed errors and no .kicad_pcb dependency
- When a BoM operation fails now we show the output of the child process.
  (Only enabled when using debug verbosity)
- The error levels 1 and 2 were overlapped with internal Python codes.
- Now we delay the PCB load until we really need it. Which could be never.
2020-06-12 15:10:56 -03:00
Salvador E. Tropea aef19e31c7 Bumped version to 0.2.5 2020-06-11 13:10:45 -03:00
Salvador E. Tropea cef002b7a3
Merge pull request #1 from INTI-CMNB/drc_errors
DRC/ERC error filters closes johnbeard/kiplot#18
2020-06-11 13:01:06 -03:00
Salvador E. Tropea 157e23c998 Documented some regex tips from the discussion here: johnbeard/kiplot#18 2020-06-11 12:51:58 -03:00
Salvador E. Tropea a403e1b13b Documented the filters option. 2020-06-10 10:57:22 -03:00
Salvador E. Tropea fc4aff380f Now pythonapp.yml is also triggered for the tags 2020-06-09 14:10:50 -03:00
Salvador E. Tropea 16e587f7c6 Added new feature to the changelog. 2020-06-09 14:07:21 -03:00
Salvador E. Tropea 2ab3748575 Removed master filter for pythonapp.yml workflow 2020-06-09 13:59:45 -03:00
Salvador E. Tropea 9983bc05bf Added test for the filters feature 2020-06-09 13:56:17 -03:00
Salvador E. Tropea c390ec3cb8 Added support for kicad-automation-tools v1.4.0 DRC/ERC filters 2020-06-09 13:49:04 -03:00
Salvador E. Tropea 9e3865d881 Removed another redundant makedirs. 2020-05-26 19:28:14 -03:00
Salvador E. Tropea 46248a6e2e Removed redundant checks to create the output dir.
They became useless after adding it to _configure_output_dir
2020-05-26 19:15:10 -03:00
Salvador E. Tropea be7a613fc8 Removed os import on plot_config.py. No longer used. 2020-05-26 19:14:10 -03:00
Salvador E. Tropea 831b6e3418 Added test and covergage badges to README.md 2020-05-26 15:03:40 -03:00
Salvador E. Tropea ee7de07ee4 Removed impossible error condition 2020-05-26 14:55:04 -03:00
Salvador E. Tropea 6c5c33be12 Excluded from coverage an internal error.
Is code that gets executed only if we are in the middle of an
implementation.
2020-05-26 14:52:54 -03:00
Salvador E. Tropea 9f60eca419 Removed two PlotConfig members formerly used for testing. 2020-05-26 14:45:19 -03:00
Salvador E. Tropea 3b7bfe40f7 Set the domain for log messages so we get "kiplot..." and not "kilog...." 2020-05-26 14:33:34 -03:00
Salvador E. Tropea 5883b1a616 Added test for command line -q (quite) 2020-05-26 14:22:58 -03:00
Salvador E. Tropea ee6238a2ce Added test for iBoM without options. 2020-05-26 14:01:52 -03:00
Salvador E. Tropea 7b8aa57610 Added missing blank line and removed extra blank line at the end. 2020-05-26 14:01:11 -03:00
Salvador E. Tropea 979b3bc0d7 Added a test for missing output.layers 2020-05-26 13:52:04 -03:00
Salvador E. Tropea 103ef8b79e Fixed: Most formats that needed layers didn't complain when ommited 2020-05-26 13:50:38 -03:00
Salvador E. Tropea 8aaa07c867 Added test for missing output.options 2020-05-26 13:40:16 -03:00
Salvador E. Tropea e3cddb280a Added tests for missing output.name and output.type. 2020-05-26 13:36:49 -03:00
Salvador E. Tropea 1d85befd9b Added test for missing comment in output section 2020-05-26 13:31:08 -03:00
Salvador E. Tropea 31e461ca9c Added 3 tests for wrong layer names. 2020-05-26 13:27:49 -03:00
Salvador E. Tropea 4e14891979 Adde test for wrong drill map type 2020-05-26 13:09:16 -03:00
Salvador E. Tropea eb77e20f80 Added test for missing drill map type 2020-05-26 13:04:56 -03:00
Salvador E. Tropea 64de376c2b Added test for wrong version in config file. 2020-05-26 12:53:24 -03:00
Salvador E. Tropea 92df488ddb Added test for no kiplot.version in config. 2020-05-26 12:50:52 -03:00
Salvador E. Tropea bb6bae95a2 Excluded from coverage the fatal case case when python-yaml isn't installed. 2020-05-26 12:43:14 -03:00
Salvador E. Tropea 53be46e1fe Fixed the pragma in __main__ (typo) 2020-05-26 12:27:48 -03:00
Salvador E. Tropea 21bc1f939e Added test for missing PCB file in command line 2020-05-26 12:23:43 -03:00
Salvador E. Tropea 9672871ebe Excluded the module import main() exclusion from coverage 2020-05-26 12:23:01 -03:00
Salvador E. Tropea b429a81473 Added test for --list option 2020-05-26 12:12:18 -03:00
Salvador E. Tropea 92de025c96 Added test for wrong config file name 2020-05-26 12:05:35 -03:00
Salvador E. Tropea c41faba302 Added tests for guessing the board and YAML, also missing YAML 2020-05-26 12:02:16 -03:00
Salvador E. Tropea b5448739ee Added a test for missing PCB file 2020-05-25 20:28:35 -03:00
Salvador E. Tropea 0ed23a1642 Added a test to skip one output 2020-05-25 20:12:42 -03:00
Salvador E. Tropea 153d967015 Excluded an "internal error check" from coverage and commented why. 2020-05-25 20:01:31 -03:00
Salvador E. Tropea cc4d942111 Added a test for a bogus output type. 2020-05-25 20:00:59 -03:00
Salvador E. Tropea 5a23fe2b37 Added tests for various cases of --skip command line option. 2020-05-25 19:49:05 -03:00
Salvador E. Tropea 1dda835cc5 Removed some dead code about configurations.
_configure_plot_ctrl is called only for "layer" outputs, there is no
point trying to configure other formats.
Also some of the "configuration" were ridiculous calls with an assert
that only tested Python's sanity. Probably optimized out by python
compiler.
2020-05-25 19:23:11 -03:00
Salvador E. Tropea 9c6ee4f457 Added simple DXF test 2020-05-25 18:59:00 -03:00
Salvador E. Tropea 1672637742 Added simple test for plotting a PCB to PDF, 2020-05-25 18:55:11 -03:00
Salvador E. Tropea 2c38414617 Fixed test_print_pcb function name (was the same as SCH) 2020-05-25 18:53:12 -03:00