-
Notifications
You must be signed in to change notification settings - Fork 57
Autorest v3 based generator cheatsheet
python -m autorest.code_generator code-model-v4-no-tags.yaml
Starting tests even if some files are not Python valid
pytest --continue-on-collection-errors
No traceback
pytest --continue-on-collection-errors --tb=no
npm install -g "@autorest/autorest"
autorest --use:@autorest/modelerfour@~4.0.9 --output-artifact:code-model-v4-no-tags --input-file:https://github.com/Azure/azure-rest-api-specs/blob/master/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/storage.json --output-folder=.
mypy --config-file=mypy.ini autorest
VScode launch configuration
{
"name": "Python: Attach",
"type": "python",
"request": "attach",
"port": 5678,
"host": "localhost"
}
When autorest is started, it will block automatically when starting the JSON server, waiting for attach from VScode
https://dev.azure.com/azure-sdk/internal/_build?definitionId=1600
npm release: https://dev.azure.com/azure-sdk/internal/_build?definitionId=1668&_a=summary