-
Notifications
You must be signed in to change notification settings - Fork 63
chore: Add mypy github action #1460
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
Conversation
.github/sync-repo-settings.yaml
Outdated
| - 'cla/google' | ||
| - 'docs' | ||
| - 'lint' | ||
| - 'format' |
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.
Do we actually want this one? As far as I know GitHub won't commit the changes back. lint also runs the formatter but will fail if any makes a change.
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 was just being conservative, and assumed that format checked things that lint didn't. So to be clear, we don't need format as a prerelease check at all?
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.
ok, so it looks like lint wasn't doing isort, so I integrated isort --check into the lint workflow, so no need for format
| @@ -0,0 +1,22 @@ | |||
| on: | |||
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.
If we add this here, I think we can safely remove from
python-bigquery-dataframes/noxfile.py
Line 119 in 7b0cab5
| "mypy", |
mypy is required check, perhaps?)
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.
Removing it (and others) in a following PR: #1459.
.github/workflows/format.yml
Outdated
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 think we can remove this file now that lint runs both black and isort.
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.
removed
5f39110 to
f07d4d0
Compare
Fixes: b/401037761