Azure / autorest.python

Extension for AutoRest (https://github.com/Azure/autorest) that generates Python code
MIT License
81 stars 57 forks source link

[DPG] Pylint issues in generated code #2826

Closed catalinaperalta closed 2 months ago

catalinaperalta commented 2 months ago

Log of pylint issues reported on Health Insights PR: https://dev.azure.com/azure-sdk/public/_build/results?buildId=4120920&view=logs&j=b70e5e73-bbb6-5567-0939-8415943fadb9&t=5da75d26-b661-5189-46a3-f9dd247b5d85&l=117

The _patch.py issues need to be resolved by the client library owner, but the errors in _models.py should be fixed by the emitter.

PR: https://github.com/Azure/azure-sdk-for-python/pull/37001

Workaround, the author manually added the following at the top of _models.py:

# pylint: disable=too-many-lines, line-too-long, too-many-locals
msyyc commented 2 months ago

fix PR https://github.com/Azure/autorest.python/pull/2830