FactoryAssistant/script/scaffold
Steven Hartland 1a4738b1d4
Fix scaffolding integration generation (#138247)
* fix(scaffold): integration generation

Fix script.scaffold integration generation which was failing due to
hassfest quality check.

Add the required `quality_scale` to the generated integration
manifest.json.

Use the new `--skip-plugins` flag to skip the hassfest quality check
when generating integrations, as the quality scale rules are marked as
todo, and only run against the generated integration.

Correct typo in help for hassfest command `--plugins` flag.

Update Integration.core method to use absolute path to ensure it returns
the true if the integration is a core integration, which was causing
other checks to fail, as the integration was not being marked as core.

Always output subprocess output as it contains the error message when a
command fails, without this the user would not know why the command
failed.

Fixes: #128639

* Adjust comment language

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2025-02-11 16:24:04 +01:00
..
templates Fix scaffolding integration generation (#138247) 2025-02-11 16:24:04 +01:00
__init__.py
__main__.py Fix scaffolding integration generation (#138247) 2025-02-11 16:24:04 +01:00
const.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
docs.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
error.py
gather_info.py Improve formatting in core files (#135256) 2025-01-10 09:08:37 +01:00
generate.py Create quality_scale.yaml from integration scaffold script (#132199) 2024-12-11 13:52:53 +01:00
model.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00