Skip to content

[python] update pylintrc to disable no-cross-package-private-import - #4970

Merged
Yuchao Yan (msyyc) merged 3 commits into
mainfrom
updatepylintrc
Jul 21, 2026
Merged

Yuchao Yan (msyyc) merged 3 commits into
mainfrom
updatepylintrc

Conversation

@JennyPng

@JennyPng jenny (JennyPng) commented Jul 20, 2026 •

Copy link
Copy Markdown
Member

disable no-cross-package-private-import for false positives, mirrors pylintrc in typespec repo to resolve errors seen here https://github.com/microsoft/typespec/actions/runs/29559758738/job/87821055874?pr=11289 for microsoft/typespec#11289

e.g.

ERROR:root:/home/runner/work/typespec/typespec/packages/typespec-python/tests/generated/azure/azure-client-generator-core-usage/specs exited with linting error 16
************* Module client.naming.typeddict.aio.operations._operations
generated/azure/client-naming-typeddict/client/naming/typeddict/aio/operations/_operations.py:32: [C4776(no-cross-package-private-import), ] Do not import private APIs from other packages. Private modules (prefixed with '_') are internal implementation details and may change without notice. Use the public API instead.

@microsoft-github-policy-service microsoft-github-policy-service Bot added the emitter:python Issues for @azure-tools/typespec-python emitter label Jul 20, 2026
@azure-sdk-automation

azure-sdk-automation Bot commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

All changed packages have been documented.

  • ✅ @azure-tools/typespec-python
Show changes

@azure-tools/typespec-python - internal ✏️

Disable no-cross-package-private-import pylint check

@pkg-pr-new

pkg-pr-new Bot commented Jul 20, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@azure-tools/typespec-python@4970

commit: c28c843

@azure-sdk-automation

Copy link
Copy Markdown
Contributor

You can try these changes here

🛝 Playground 🌐 Website

@msyyc
Yuchao Yan (msyyc) added this pull request to the merge queue Jul 21, 2026
@msyyc
Yuchao Yan (msyyc) removed this pull request from the merge queue due to a manual request Jul 21, 2026
@msyyc
Yuchao Yan (msyyc) added this pull request to the merge queue Jul 21, 2026
Merged via the queue into main with commit b6469c3 Jul 21, 2026
31 of 32 checks passed
@msyyc
Yuchao Yan (msyyc) deleted the updatepylintrc branch July 21, 2026 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

emitter:python Issues for @azure-tools/typespec-python emitter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants