-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check for use of debugpy
and ptvsd
debug modules (#10177)
#10194
Check for use of debugpy
and ptvsd
debug modules (#10177)
#10194
Conversation
| ["debugpy", "breakpoint" | "listen" | "wait_for_client"] | ||
| ["ptvsd", "break_into_debugger" | "wait_for_attach"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to pick the API methods that looked like they would be most commonly used based on the documentation:
https://github.com/microsoft/debugpy/?tab=readme-ov-file#debugpy-import-usage
https://github.com/microsoft/ptvsd?tab=readme-ov-file#ptvsd-import-usage
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spot-checked, makes sense to me.
|
21ebf18
to
cc56dd2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great, thank you!
astral-sh#10194) ## Summary This addresses astral-sh#10177. ## Test Plan I added additional lines to the existing test file for T100.
ruff 0.3.1 added linting rules to alert on the usage of debugpy with astral-sh/ruff#10194. This commit excludes these lines because it's used for a specific feature (instead of debugging code leaking into the codebase).
Summary
This addresses #10177.
Test Plan
I added additional lines to the existing test file for T100.