Skip to content

README updates #226

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

Merged
merged 8 commits into from
Aug 19, 2022
Merged

README updates #226

merged 8 commits into from
Aug 19, 2022

Conversation

hashhar
Copy link
Member

@hashhar hashhar commented Aug 18, 2022

Most of this is "refactor".

Actual useful/impacting content changes are:

PTAL @ebyhr at Update releasing instructions in README specially. I'm not sure if the trailing slash was intentionally left out (to prevent copy and paste?).

Installing trino-python-client with the sqlalchemy extra like `pip
install trino[sqlalchemy]` automatically installs required version of
SQLAlchemy.
@cla-bot cla-bot bot added the cla-signed label Aug 18, 2022
@hashhar
Copy link
Member Author

hashhar commented Aug 18, 2022

I left out pre-commit setup for now since CI enforces things for now but we can decide what parts to offload to PR authors (e.g. import sorting, automated reformat).

I'm wary of requiring something like mypy enforced on PR authors (it must be enforced in CI however) because not everyone is familiar with it and we want people to be able to open PRs and we can help with parts they aren't confident about. We can raise the bar over time.

Copy link
Member

@ebyhr ebyhr left a comment

Choose a reason for hiding this comment

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

Thanks! I left one minor comment.

Copy link
Member

@hovaesco hovaesco left a comment

Choose a reason for hiding this comment

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

Thanks!. Re I left out pre-commit setup for now are you referring to #208 (comment) ?

@@ -448,6 +438,9 @@ When the code is ready, submit a Pull Request.
- Prefer code that is readable over one that is "clever".
- When writing a Git commit message, follow these [guidelines](https://chris.beams.io/posts/git-commit/).

See also Trino's [guidelines](https://github.com/trinodb/trino/blob/master/.github/DEVELOPMENT.md).
Copy link
Member

Choose a reason for hiding this comment

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

What about creating DEVELOPMENT.md or CONTRIBUTING.md exclusively for trino-python-client? It can be done as a follow-up and move there all necessary information about testing, contributing?

Copy link
Member Author

Choose a reason for hiding this comment

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

README is still the place where build instructions should live.

Things like code style, release process etc. can go to DEVELOPMENT.md.

I'll send a follow-up PR - thanks for the idea.

@hashhar hashhar force-pushed the hashhar/readme-cleanup branch from 75888bc to 61c867e Compare August 19, 2022 07:33
@hashhar
Copy link
Member Author

hashhar commented Aug 19, 2022

Thanks!. Re I left out pre-commit setup for now are you referring to #208 (comment) ?

Yes, I mean someone should add pre-commit setup instruction to README.
I also want to look into whether it's possible to have "profiles" in pre-commit so that CI is more strict than local.

Or alternatively we can only add things we really want to check before commit to pre-commit (like sort imports, auto reformat) but keep other things like mypy and tests outside of it.

@hashhar hashhar merged commit 88ad0bc into trinodb:master Aug 19, 2022
@hashhar hashhar deleted the hashhar/readme-cleanup branch August 19, 2022 07:57
@hashhar
Copy link
Member Author

hashhar commented Aug 19, 2022

I'll follow up with dedicated DEVELOPMENT.md/CONTRIBUTING.md.

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.

3 participants