diff options
| author | Jack Sangdahl <jack@pngu.org> | 2025-11-21 23:57:58 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-22 06:57:58 +0000 |
| commit | 1a7f544e0df833f9709aaa724f9fd8b5c5c274de (patch) | |
| tree | dacef752c94e5b353e4e9eccc311a58e3bb46b89 | |
| parent | 3e0b22af68da07bf2854ecde6b0f31f98fd027e2 (diff) | |
[CLI] Lint error on missing keyboard readme (#25814)
| -rw-r--r-- | lib/python/qmk/cli/lint.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/python/qmk/cli/lint.py b/lib/python/qmk/cli/lint.py index 484ddb5bd9..8a128ce6d2 100644 --- a/lib/python/qmk/cli/lint.py +++ b/lib/python/qmk/cli/lint.py | |||
| @@ -304,6 +304,10 @@ def keyboard_check(kb): # noqa C901 | |||
| 304 | cli.log.error(f'{kb}: The file "{file}" should not exist!') | 304 | cli.log.error(f'{kb}: The file "{file}" should not exist!') |
| 305 | ok = False | 305 | ok = False |
| 306 | 306 | ||
| 307 | if not _get_readme_files(kb): | ||
| 308 | cli.log.error(f'{kb}: Is missing a readme.md file!') | ||
| 309 | ok = False | ||
| 310 | |||
| 307 | for file in _get_readme_files(kb): | 311 | for file in _get_readme_files(kb): |
| 308 | if _is_invalid_readme(file): | 312 | if _is_invalid_readme(file): |
| 309 | cli.log.error(f'{kb}: The file "{file}" still contains template tokens!') | 313 | cli.log.error(f'{kb}: The file "{file}" still contains template tokens!') |
