-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Enable mypy type checks for the Python CDK #31356
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
Before Merging a Connector Pull RequestWow! What a great pull request you have here! 🎉 To merge this PR, ensure the following has been done/considered for each connector added or updated:
If the checklist is complete, but the CI check is failing,
|
@girarda can we instead configure What I find problematic is that this script assumes |
@@ -0,0 +1,30 @@ | |||
name: Run mymy on modified cdk files |
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.
s/mymy/mypy :)
Also, there might be a naming convention these days for gha, check with @airbytehq/connector-operations
on: | ||
pull_request: | ||
paths: | ||
- "airbyte-cdk/python/airbyte_cdk/**" |
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.
Does the globber support **/*.py
?
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.
yes, updated!
- run: pip install mypy==1.6.0 | ||
- name: Get Python changed files | ||
id: changed-py-files | ||
uses: tj-actions/changed-files@v23 |
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.
neat!
This reverts commit 1b0f697.
Co-authored-by: Marius Posta <[email protected]>
What
bin/run-mypy-on-modified-files.sh