Add board/shield validation tools

オープン
#72 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
活発
技術スタック
python
領域
cli, tooling

調査の方向性

まず既存のコマンド構造と ZMK リポジトリ内の .zmk.yml ファイルを確認し、次に root build.yml のマトリックスを調べます。そのコマンドが board と shield のチェックだけを対象とするのか、それとも build-matrix への参照も対象とするのかを明確にし、実装前に報告する必要があるバリデーションエラーを定義します。

索引モデルが issue の本文から書いたものです。

説明

enhancement

As discussed in #65, it may be useful to add a command that attempts to validate that a board or shield configuration is defined correctly to work with ZMK. I don't think it makes sense to try to build a full kconfig/devicetree linting system, but there are a few things that would be relatively simple to check and are easy errors to make.

Things we could check for boards and shields:

  • Does the .zmk.yml file match the schema?
  • If a board has a default_revision, does a matching revision exist in its revisions list?
  • For every board/shield sibling, board variant, and board revision, do all of the non-optional kconfig and devicetree files exist?
  • Are there any name collisions? (Often caused by copying a board/shield into your config and not renaming it.)

The validation command could support a list of .zmk.yml files to check or default to scanning all of them.

There are also a few things in the root build.yml file that we could validate as well, such as verifying that every board, shield, and snippet used in the build matrix exists. I'm not sure whether that should be part of the same command as checking boards/shields or a separate one if we were to do this though.

主要言語
Python
スター
20
フォーク
8
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

zmkfirmware/zmk-cli のほかの issue

zmkfirmware/zmk-cli の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。