Address python warnings from comment blocks in resource-graph extension #8418
+15
−10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
After AZ CLI 2.65.0 there is a Python warning originating from some comment sections in resource-graph extension, due to backslash escaping:
C:.azure\cliextensions\resource-graph\azext_resourcegraph\vendored_sdks\resourcegraph\models_models_py3.py:53: SyntaxWarning: invalid escape sequence '\ '
"""An interval in time specifying the date and time for the inclusive start and exclusive end, i.e.
[start, end)
.C:.azure\cliextensions\resource-graph\azext_resourcegraph\vendored_sdks\resourcegraph\models_models_py3.py:1196: SyntaxWarning: invalid escape sequence '\ '
The comment block involving backslash is largely redundant, hence this PR removes it. This does not change code logic in any way.
Related command
az graph
General Guidelines
azdev style <YOUR_EXT>
locally? (pip install azdev
required)python scripts/ci/test_index.py -q
locally? (pip install wheel==0.30.0
required)For new extensions:
About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update
src/index.json
automatically.You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify
src/index.json
.