Pass --skip-pylint to apistubgen only when --md is specified#46158
Merged
Pass --skip-pylint to apistubgen only when --md is specified#46158
--skip-pylint to apistubgen only when --md is specified#46158Conversation
Agent-Logs-Url: https://github.com/Azure/azure-sdk-for-python/sessions/e76821d9-4504-4627-9352-c4538aa79e9f Co-authored-by: swathipil <76007337+swathipil@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add conditional appending of --skip-pylint in run method
Pass Apr 6, 2026
--skip-pylint to apistubgen only when --md is specified
swathipil
approved these changes
Apr 6, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the azpysdk apistub wrapper so it only forwards --skip-pylint to apistubgen when --md (markdown generation) is requested, aligning command construction with the intended behavior.
Changes:
- Conditionally append
--skip-pylintto theapistubgencommand only whenargs.generate_mdisTrue. - Add unit tests to verify
--skip-pylintis present withgenerate_md=Trueand absent withgenerate_md=False.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| eng/tools/azure-sdk-tools/azpysdk/apistub.py | Adds conditional --skip-pylint flag inclusion when markdown generation is requested. |
| eng/tools/azure-sdk-tools/tests/test_apistub.py | Adds coverage for flag presence/absence based on generate_md. |
…s.run and creating token JSON Agent-Logs-Url: https://github.com/Azure/azure-sdk-for-python/sessions/6aaa6910-2dab-4716-a109-89bc72d2c96e Co-authored-by: swathipil <76007337+swathipil@users.noreply.github.com>
Contributor
Author
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
scbedd
approved these changes
Apr 8, 2026
Member
|
/check-enforcer override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
--skip-pylintwas never conditionally passed toapistubgen. It should only be appended when--md(generate_md=True) is used, since markdown generation does not require pylint analysis.Changes
azpysdk/apistub.py: Append--skip-pylinttocmdsiffargs.generate_mdisTrue:tests/test_apistub.py: Two new tests inTestRunOutputDirectory:test_generate_md_adds_skip_pylint— asserts--skip-pylintis present whengenerate_md=Truetest_no_generate_md_omits_skip_pylint— asserts--skip-pylintis absent whengenerate_md=FalseWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
pypi.org/home/REDACTED/work/azure-sdk-for-python/azure-sdk-for-python/.venv/bin/python /home/REDACTED/work/azure-sdk-for-python/azure-sdk-for-python/.venv/bin/python /home/REDACTED/work/azure-sdk-for-python/azure-sdk-for-python/.venv/lib/python3.9/site-packages/pip/__pip-REDACTED__.py install --ignore-installed --no-user --prefix /tmp/pip-build-env-1d2ihifr/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i REDACTED -- setuptools>=42 wheel(dns block)scanning-api.github.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
This pull request was created from Copilot chat.