Skip to content

Commit

Permalink
[Added] Autodetection of .kibot.yml files
Browse files Browse the repository at this point in the history
- So people using CI/CD can name all YAML files `.yml` (DOS legacy?)
  • Loading branch information
set-soft committed Jan 2, 2024
1 parent a48d014 commit af2aad1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- General:
- Operations that copies the project now also copies the PRL and the DRU
- Files named *.kibot.yml are also detected as configuration files
- Command line:
- `--help-list-offsets` to list footprint offsets (JLCPCB)
- `--help-list-rotations` to list footprint rotations (JLCPCB)
Expand Down
2 changes: 1 addition & 1 deletion docs/GITHUB-ACTIONS-README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ The `uses: actions/checkout` refers to a specific repo, [GitHub Actions](https:/

## Caveats, Gotchyas, and Pitfalls

1. KiBot requires a `{meaningful_name}.kibot.yaml` file name scheme. While most places use `*.yml` and `*.yaml` interchangeably, it is specific here that `*.kibot.yml` won't work. This is especially odd since GitHub uses `*.yml` and kibot uses `*.yaml`.
1. KiBot requires a `{meaningful_name}.kibot.yaml` file name scheme. You can also use `{meaningful_name}.kibot.yml`.

## Different ways of doing things

Expand Down
2 changes: 1 addition & 1 deletion kibot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def list_variants(logger, only_names):
def solve_config(a_plot_config, quiet=False):
plot_config = a_plot_config
if not plot_config:
plot_configs = glob('*.kibot.yaml')+glob('*.kiplot.yaml')+glob('*.kibot.yaml.gz')
plot_configs = glob('*.kibot.yaml')+glob('*.kiplot.yaml')+glob('*.kibot.yaml.gz')+glob('*.kibot.yml')
if len(plot_configs) == 1:
plot_config = plot_configs[0]
if not quiet:
Expand Down

0 comments on commit af2aad1

Please sign in to comment.