Closed GrahamMThomas closed 1 month ago
Thank you for opening this issue @GrahamMThomas , @msyyc can you take a look? thank you!
@GrahamMThomas According to log failed to format C:\azure-sdk-for-python\sdk\healthdataaiservices\azure-health-deidentification\venv\Lib\site-packages\win32com\demos\iebutton.py
, it seems your target folder contains unexpected folder venv
. Please clean your target folder then try again.
venv
is convention for a virtualenv folder. It should probably be ignored by the linter.
I recreated using env
instead of venv
but the same error still exists. That is the name of the folder the Getting Started docs recommend. If I delete both it succeeds.
This means that once you start developing and sdk with a virtual environment, recommended by the Getting Started docs, you have to delete it every time you want to regenerate the SDK with typespec.
I recommend we exclude env
and venv
(by convention) from black linter if possible.
We will consider to exclude files under env
and venv
. As work around, please try to create virtual environment under root folder of sdk repo.
Looks related: https://github.com/Azure/autorest.python/issues/2497