mirror of
https://git.datalinker.icu/ltdrdata/ComfyUI-Manager
synced 2025-12-09 06:04:31 +08:00
1.3 KiB
1.3 KiB
- Anytime you make a change to the data being sent or received, you should follow this process:
- Adjust the openapi.yaml file first
- Verify the syntax of the openapi.yaml file using
yaml.safe_load - Regenerate the types following the instructions in the
data_models/README.mdfile - Verify the new data model is generated
- Verify the syntax of the generated types files
- Run formatting and linting on the generated types files
- Adjust the
__init__.pyfiles in thedata_modelsdirectory to match/export the new data model - Only then, make the changes to the rest of the codebase
- Run the CI tests to verify that the changes are working
- The comfyui_manager is a python package that is used to manage the comfyui server. There are two sub-packages
globandlegacy. These represent the current version (glob) and the previous version (legacy), not including common utilities and data models. When developing, we work in theglobpackage. You can ignore thelegacypackage entirely, unless you have a very good reason to research how things were done in the legacy or prior major versions of the package. But in those cases, you should just look for the sake of knowledge or reflection, not for changing code (unless explicitly asked to do so).