-
Notifications
You must be signed in to change notification settings - Fork 60
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"
}Then, set the env variable "AUTOREST_PYTHON_ATTACH_VSCODE_DEBUG" to any string (content doesn't matter)
When autorest is started, it will block automatically when starting the JSON server, waiting for attach from VScode