Move the node generator out of scripts into node_gen #147
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/node-gen"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
YN-31.
scripts/yaml_node.py,gen_node.py,node_schema.py,build_yaml_nodes.shandscripts/tests/(with its fixtures) move tonode_gen/under the same names, withgit mvso history follows.scripts/stamp.pyand the other build and release helpers stay.References updated:
platformio.ini(thepre:script and its comment),gen_node.py'ssys.pathinsert, the fixture glob and generator call inbuild_yaml_nodes.sh, the three YAML-node steps in.forgejo/workflows/build.yml(unittest discover-s node_gen/tests -t node_gen, the schema regenerate command, the build script), the usage line innode_schema.py, the fixture glob intest_node_schema.py, and the "generated by" comment the generator writes intomain.cpp. A search of the whole repo for the old paths, includingREADME.md,CONTRIBUTING.md,CLAUDE.md,docs/andnodes/README.md, found no other mention of the generator's files, so no doc changes were needed.No behaviour change. The generated code is the same apart from that one comment line. Tests are untouched apart from the path.
Tested: Python 163, none skipped locally, with the new discover command. The committed schema regenerates unchanged, all fixtures build through the
pre:script, andpio runstill builds every node.