Skip to content
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

Add pre-commit as a Flake8 and MyPy delegate #91

Merged
merged 1 commit into from
Aug 16, 2021
Merged

Add pre-commit as a Flake8 and MyPy delegate #91

merged 1 commit into from
Aug 16, 2021

Conversation

arturdryomov
Copy link
Member

Relates to #69. Also see pre-commit.

@cla-bot
Copy link

cla-bot bot commented Jul 18, 2021

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please submit the signed CLA to cla@trino.io. For more information, see https://github.com/trinodb/cla.

.github/workflows/ci.yml Outdated Show resolved Hide resolved
setup.py Show resolved Hide resolved
@arturdryomov arturdryomov marked this pull request as ready for review July 18, 2021 11:12
@arturdryomov
Copy link
Member Author

@ebyhr, @joshthoward, hey, can I ask you to check the PR and the CLA? I’ve sent the CLA email a week ago but the check is still failing so I assume it wasn’t reviewed.

@ebyhr
Copy link
Member

ebyhr commented Aug 4, 2021

@martint Could you make sure CLA email from @arturdryomov ?

@arturdryomov
Copy link
Member Author

@ebyhr, the CLA was accepted this night. I’ll have to force-push to trigger the check I guess.

@ebyhr
Copy link
Member

ebyhr commented Aug 4, 2021

@cla-bot check

@ebyhr
Copy link
Member

ebyhr commented Aug 4, 2021

Your account is member of Trino org, but I can't find your account in contributor list.

ll have to force-push to trigger the check I guess.

We can trigger the check by above comment.

@arturdryomov
Copy link
Member Author

@ebyhr, thanks! Yeah, seems like I was invited into the org but wasn’t added to trinodb/cla/contributors. Should I open a PR here or someone else does this on a regular basis?

@ebyhr
Copy link
Member

ebyhr commented Aug 4, 2021

@arturdryomov You don't need to open a PR. @martint will add your account to the list.

@ebyhr
Copy link
Member

ebyhr commented Aug 5, 2021

@cla-bot check

@cla-bot
Copy link

cla-bot bot commented Aug 5, 2021

The cla-bot has been summoned, and re-checked this pull request!

@cla-bot cla-bot bot added the cla-signed label Aug 5, 2021
@trinodb trinodb deleted a comment from cla-bot bot Aug 5, 2021
@trinodb trinodb deleted a comment from cla-bot bot Aug 5, 2021
@trinodb trinodb deleted a comment from cla-bot bot Aug 5, 2021
@arturdryomov
Copy link
Member Author

Rebased and the CLA seem to be in order.

@ebyhr, @findepi, PTAL. Please tag related people, I’ve chosen you based on recent activity.

@hashhar hashhar self-requested a review August 5, 2021 06:29
@arturdryomov
Copy link
Member Author

@hashhar, @ebyhr, @findepi, 🏓

Copy link
Member

@joshthoward joshthoward left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor change requested. Otherwise, looks good.

@@ -22,16 +22,19 @@


with open("trino/__init__.py", "rb") as f:
version = str(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like unnecessary error handling. We if the version is missing I would want an explicit failure.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Switched to assert, should fail and highlight the issue if it appears.

Copy link
Member

@hashhar hashhar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to go % the 2 comments.

Copy link

@thof thof left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but the discussion around pre-commit is not resolved yet, right (cc: @hashhar)? I'm fine with the current approach though.

Copy link
Member

@hashhar hashhar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM % workflow step name.

Sorry for the long back and forth @arturdryomov . Thanks for working on this.

@@ -3,6 +3,21 @@ name: ci
on: [push, pull_request]

jobs:
pre-commit:
Copy link
Member

@hashhar hashhar Aug 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arturdryomov Can you give this a name like lint? pre-commit is misleading.

@hashhar
Copy link
Member

hashhar commented Aug 16, 2021

Thank you @arturdryomov . Can you please squash the commits - I'll merge once the checks complete.

@arturdryomov
Copy link
Member Author

@hashhar, done. Thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

5 participants