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

Issue 211: Style guide first draft #264

Merged
merged 18 commits into from
Apr 28, 2023
Merged

Issue 211: Style guide first draft #264

merged 18 commits into from
Apr 28, 2023

Conversation

seabbs
Copy link
Collaborator

@seabbs seabbs commented Apr 26, 2023

Description

This PR closes #211.

I have introduced a first pass at a STYLE_GUIDE.md which details out input and output requirements as well as some internal code expectations. It clearly states we depend on the tidyverse style guide. This new style guide is now linked from the CONTRIBUTING.md.

This PR also partially addresses #234 but more discussion and work may be needed (not for this PR).

Checklist

  • My PR is based on a package issue and I have explicitly linked it.
  • I have included the target issue or issues in the PR title in the for Issue(s) issue-numbers: PR title
  • I have read the contribution guidelines.
  • I have tested my changes locally.
  • I have updated the documentation if required.
  • My code follows the established coding standards.
  • I have added a news item linked to this PR.
  • I have updated the package development version by one increment in both NEWS.md and the DESCRIPTION.
  • I have reviewed CI checks for this PR and addressed them as far as I am able.

@seabbs seabbs added documentation Improvements or additions to documentation high-priority reviewer-needed labels Apr 26, 2023
@seabbs seabbs mentioned this pull request Apr 26, 2023
4 tasks
@codecov
Copy link

codecov bot commented Apr 26, 2023

Codecov Report

Merging #264 (d572b9f) into main (8a767e4) will not change coverage.
The diff coverage is n/a.

❗ Current head d572b9f differs from pull request most recent head 341b3a9. Consider uploading reports for the commit 341b3a9 to get more accurate results

@@           Coverage Diff           @@
##             main     #264   +/-   ##
=======================================
  Coverage   96.81%   96.81%           
=======================================
  Files          15       15           
  Lines        1570     1570           
=======================================
  Hits         1520     1520           
  Misses         50       50           

@pearsonca pearsonca self-requested a review April 26, 2023 14:18
@github-actions
Copy link
Contributor

This is how benchmark results would change (along with a 95% confidence interval in relative change) if 8a767e4 is merged into main:
These benchmarks are based on package examples which are available here. Further explanation regarding interpretation and methodology can be found in the documentation of touchstone.

@seabbs seabbs linked an issue Apr 26, 2023 that may be closed by this pull request
Copy link
Collaborator

@pearsonca pearsonca left a comment

Choose a reason for hiding this comment

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

Seems like a start, but needs some work?

I also think there's generally room to be aspirational here - have some rules we want to enforce, but that the code doesn't yet comply with. Helps us fix things as refactors go along, not introduce more work when we finally get around to it, etc.

CONTRIBUTING.md Outdated Show resolved Hide resolved
STYLE_GUIDE.md Outdated Show resolved Hide resolved
STYLE_GUIDE.md Outdated Show resolved Hide resolved
STYLE_GUIDE.md Outdated Show resolved Hide resolved
STYLE_GUIDE.md Outdated Show resolved Hide resolved
STYLE_GUIDE.md Outdated Show resolved Hide resolved
STYLE_GUIDE.md Show resolved Hide resolved
STYLE_GUIDE.md Outdated Show resolved Hide resolved
STYLE_GUIDE.md Show resolved Hide resolved
seabbs and others added 3 commits April 26, 2023 22:01
Co-authored-by: Carl A. B. Pearson <pearsonca@users.noreply.github.com>
Co-authored-by: Carl A. B. Pearson <pearsonca@users.noreply.github.com>
Co-authored-by: Carl A. B. Pearson <pearsonca@users.noreply.github.com>
@seabbs
Copy link
Collaborator Author

seabbs commented Apr 26, 2023

Thanks Carl, some nice comments.

I agree there is more we could cover but I think that needs to be discussed by a wider group first (so in a new issue, which you might like to write?) and potentially on a call if people feel strongly (sounds like a fun time to me).

I'll make changes and then ping for another review.

STYLE_GUIDE.md Outdated Show resolved Hide resolved
STYLE_GUIDE.md Show resolved Hide resolved
@github-actions
Copy link
Contributor

This is how benchmark results would change (along with a 95% confidence interval in relative change) if 8a767e4 is merged into main:
These benchmarks are based on package examples which are available here. Further explanation regarding interpretation and methodology can be found in the documentation of touchstone.

@seabbs
Copy link
Collaborator Author

seabbs commented Apr 27, 2023

I think I have addressed the majority of both of your points. I agree there is more than can be done here on an aspirational level but quite a lot of that involves choices which really need to be made by the wider community (i.e. so we need issues to discuss and maybe bring up at a community meeting).

@github-actions
Copy link
Contributor

This is how benchmark results would change (along with a 95% confidence interval in relative change) if 8a767e4 is merged into main:
These benchmarks are based on package examples which are available here. Further explanation regarding interpretation and methodology can be found in the documentation of touchstone.

pearsonca
pearsonca previously approved these changes Apr 28, 2023
Copy link
Collaborator

@pearsonca pearsonca left a comment

Choose a reason for hiding this comment

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

Minor changes proposed; otherwise, seems like a good start.

CONTRIBUTING.md Outdated Show resolved Hide resolved
STYLE_GUIDE.md Outdated Show resolved Hide resolved
STYLE_GUIDE.md Outdated Show resolved Hide resolved
STYLE_GUIDE.md Outdated Show resolved Hide resolved
seabbs and others added 4 commits April 28, 2023 09:05
Co-authored-by: Carl A. B. Pearson <pearsonca@users.noreply.github.com>
Co-authored-by: Carl A. B. Pearson <pearsonca@users.noreply.github.com>
Co-authored-by: Carl A. B. Pearson <pearsonca@users.noreply.github.com>
Co-authored-by: Carl A. B. Pearson <pearsonca@users.noreply.github.com>
@seabbs seabbs requested a review from pearsonca April 28, 2023 08:07
@github-actions
Copy link
Contributor

This is how benchmark results would change (along with a 95% confidence interval in relative change) if 8a767e4 is merged into main:
These benchmarks are based on package examples which are available here. Further explanation regarding interpretation and methodology can be found in the documentation of touchstone.

@seabbs seabbs self-assigned this Apr 28, 2023
@seabbs seabbs merged commit a7ec63b into main Apr 28, 2023
10 checks passed
@seabbs seabbs deleted the seabbs/issue211 branch April 28, 2023 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation high-priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improving the package contributing guide Required object types for users
3 participants