Commit Graph

3368 Commits

Author SHA1 Message Date
Salvador E. Tropea 7c7d3aff0b [CLI][Added] defs-from-env allows using environment vars for substitution
Closes #549
2024-01-08 10:31:15 -03:00
Salvador E. Tropea 2ba5b7101c Unified some *dont_stop* cases 2024-01-05 13:18:03 -03:00
Salvador E. Tropea 393f45fe54 Restored missing .coveragerc
Oops!
2024-01-05 13:15:40 -03:00
Salvador E. Tropea 190dc0a389 Unified the exit point for errors running external commands 2024-01-05 12:52:46 -03:00
Salvador E. Tropea e9733d9559 [DOCs] Made the *type* more explicit in outputs help 2024-01-05 11:06:18 -03:00
Salvador E. Tropea 14fb810c0f [DOCs] Updated
- Fixed spelling
- New command line option
- New error level
- KiDiff version needed
2024-01-05 10:52:03 -03:00
Salvador E. Tropea f4e6b421de [KiBot Check] Updated KiDiff dependency 2024-01-05 10:51:11 -03:00
Salvador E. Tropea 364f9dbc6e Merge branch 'dev' of https://github.com/INTI-CMNB/KiBot into dev 2024-01-05 09:42:01 -03:00
Salvador E. Tropea 2d5bbffd05
Merge pull request #547 from mdeweerd/flow/pre-commit-action
Flow/pre commit action - upgrade pre-commit hooks
2024-01-05 09:40:47 -03:00
Salvador E. Tropea a5dafbd155 [pre-commit] Updated versions 2024-01-05 09:36:15 -03:00
Salvador E. Tropea 6f7d425ee1 [flake8] Fixed reported issues 2024-01-05 09:33:42 -03:00
Salvador E. Tropea d7392d59ec [Fixed] Spell errors 2024-01-05 09:09:58 -03:00
Salvador E. Tropea 950a875c33 [flake8] Optimized use of map+lambda 2024-01-05 09:02:01 -03:00
Salvador E. Tropea 39e9d5c28c [Fixed] Line commented for tests 2024-01-05 08:34:32 -03:00
Salvador E. Tropea 568510ecd7 [Fixed] Support list of errors (not just tuple) 2024-01-05 08:17:04 -03:00
Salvador E. Tropea 9b87aabd9b [Fixed] KiPlotConfigurationError is more specific than KiPlotError 2024-01-05 07:59:10 -03:00
Salvador E. Tropea cf88b27dde [Tests] Adapted test_int_bom_no_xlsx_support
Now we fail if the XLSX couldn't be created
2024-01-05 07:47:54 -03:00
Salvador E. Tropea d5fa776dbf [Blender Export][Fixed] Make sure output subdirs exists
- Blender seems to be able to create just 1 level
2024-01-05 07:28:40 -03:00
MDW 50f2897835 Update pre-commit hooks 2024-01-05 11:15:52 +01:00
Salvador E. Tropea ab17559a29 [Blender export][Fixed] Problems when no point of view was defined
- The default view wasn't translated.
- Now translated
- Now the render script defaults to 0 rotation if the view is unknown
Fixes #546
2024-01-05 07:04:58 -03:00
MDW f3b9a81df8 ci: Add action to run pre-commit 2024-01-05 11:04:38 +01:00
Salvador E. Tropea 7ec3a1379c Unified some errors details
- Non-critical errors will stop when using -W
- More stack traces on error
- More centralized exit
2024-01-04 13:58:13 -03:00
Salvador E. Tropea 6e914b0959 [CLI][Fixed] Made -D and -W mutually exclusive 2024-01-04 12:40:58 -03:00
Salvador E. Tropea 2ea50114ea Removed log debug "error" 2024-01-04 12:40:38 -03:00
Salvador E. Tropea 5bf6ae7c5d [CLI] Added option to stop on warnings
Closes #545
2024-01-04 11:16:55 -03:00
Salvador E. Tropea e9ddb02889 [Diff][Fixed] We need to also pass --zone to the diff stage 2024-01-04 11:15:51 -03:00
Salvador E. Tropea d1e6018c14 [KiRi] Bumped KiDiff version dep to 2.5.1
Needed for zones stuff
2024-01-04 11:15:01 -03:00
Salvador E. Tropea ed84808566 [Diff][Added] Option to un/fill zones before doing the comparison
See #391
2024-01-03 13:17:18 -03:00
Salvador E. Tropea db6dc95acb [KiRi] Reserved one position for the legacy "txt_icon" 2024-01-03 13:14:23 -03:00
Salvador E. Tropea c4f8b1cc33 [KiRi][Fixed] Description
Was a copy and paste from Diff
2024-01-03 08:11:23 -03:00
Salvador E. Tropea cad31ee240 [KiRi][Added] Test for KiAuto 2024-01-03 08:10:50 -03:00
Salvador E. Tropea af2aad1659 [Added] Autodetection of .kibot.yml files
- So people using CI/CD can name all YAML files `.yml` (DOS legacy?)
2024-01-02 13:33:55 -03:00
Salvador E. Tropea a48d014541 [Blender Export][Adde] Option to disable the denoiser
- Enables the use of old hardware and Debian packages
- You must be extremelly patient

Closes #539
2024-01-02 13:30:49 -03:00
Salvador E. Tropea d074294ea6 [Blender Export][Added] Subdirectory for each output
Closes #541
2024-01-02 12:51:43 -03:00
Salvador E. Tropea 2111a2d6b6 [Tests][Added][KiCad 5] light_control project
- Needed for the Quick Start test
2024-01-02 11:12:08 -03:00
Olliver Schinagl 493c74abff kiplot: Allow output dir to exist
When running kibot with `--out-dir /my_path/reports`, contrary to other
means of running kibot, we check if a path exists. However, this seems
to fail with for example symlinks, resulting in the following error.

Using SCH file: 1.kicad_sch
- 'Records information about the current run.' (info) [info]
Traceback (most recent call last):
  File "/usr/bin/kibot", line 33, in <module>
    sys.exit(load_entry_point('kibot==1.6.3', 'console_scripts', 'kibot')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/kibot/__main__.py", line 520, in main
    generate_outputs(outputs, args.target, args.invert_sel, args.skip_pre, args.cli_order, args.no_priority,
  File "/usr/lib/python3/dist-packages/kibot/kiplot.py", line 527, in generate_outputs
    _generate_outputs(outputs, targets, invert, skip_pre, cli_order, no_priority, dont_stop)
  File "/usr/lib/python3/dist-packages/kibot/kiplot.py", line 517, in _generate_outputs
    run_output(out, dont_stop)
  File "/usr/lib/python3/dist-packages/kibot/kiplot.py", line 418, in run_output
    out.run(get_output_dir(out.dir, out))
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/kibot/kiplot.py", line 366, in get_output_dir
    os.makedirs(outdir)
  File "<frozen os>", line 225, in makedirs
FileExistsError: [Errno 17] File exists: '/my_path/reports'

Instead of manually determining things, lets just use os.makedirs to
handle this with the `exists_ok` argument, as we do elsewhere.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
2024-01-02 10:53:27 -03:00
Salvador E. Tropea e4614e7603 Now we use the realpath instead of the user provided name
Helps to avoid unpleasant surprises like in the #544 case

Closes #544
2024-01-02 10:48:06 -03:00
Salvador E. Tropea f28540d9cc [Tests][Fixed] Quick Start test
- To include the project, now mandatory
2024-01-02 10:46:45 -03:00
Salvador E. Tropea 0feb739edf [Quick Start][Changed] To use only projects
- This avoids problems for sub-sheets in separated dirs.
2024-01-02 10:19:20 -03:00
Salvador E. Tropea 338805560a [KiRi] Added resources to the distro 2024-01-02 10:10:51 -03:00
Salvador E. Tropea e4b855e410 [KiRi] Implemented the quick-start example 2024-01-02 09:56:54 -03:00
Salvador E. Tropea 19e2fb59b1 [KiRi][DOCs] Updated 2023-12-29 13:21:17 -03:00
Salvador E. Tropea 33bd72073b [KiRi] Renamed the branch option
- Now called revision
- It is in fact a *revision-range*
2023-12-29 13:19:32 -03:00
Salvador E. Tropea 2a8c699908 [KiRi] Implemented the "all" layers case 2023-12-29 13:07:36 -03:00
Salvador E. Tropea 1f62308b8b [KiRi] Implemented the targets
For Makefiles and Compress
2023-12-29 11:27:20 -03:00
Salvador E. Tropea 23427f75e1 [Compress][Added] Better subdirs support for outputs
- Multiple dirs
- Recursive subdirs
2023-12-29 11:25:17 -03:00
Salvador E. Tropea 0e37d40d2f [KiRi][Added] Now we can choose the branch
Also added check to see if we have at least 2 commits
2023-12-29 10:50:21 -03:00
Salvador E. Tropea 7f8828ad3f [KiRi][Fixed] Missing icon for not modified commits 2023-12-29 10:49:30 -03:00
Salvador E. Tropea 303bedb88f [KiRi] Restored damaged code-branch-solid.svg 2023-12-29 10:47:41 -03:00
Salvador E. Tropea 708b9aeb65 [KiRi] Implemented the maximum commits option 2023-12-29 09:36:26 -03:00