-
Notifications
You must be signed in to change notification settings - Fork 154
Remove R development dependencies #4306
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
Changes from 3 commits
6061efc
16e8c6b
fb39f5f
e4d2f83
7df1669
7de30de
d26a66f
70430d4
4cdb832
a08ca4f
a2c5d63
88f3e41
605fe08
fdddae6
ffa8401
a2d01d4
6952ee3
2f0d750
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,7 @@ on: | |
| push: | ||
| branches: | ||
| - main | ||
| - free_some_deps | ||
| schedule: | ||
| - cron: "0 0 * * *" | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -96,7 +96,7 @@ dependencies: | |||||||||||||||||||
|
|
||||||||||||||||||||
| # R and dependencies | ||||||||||||||||||||
| - cdo | ||||||||||||||||||||
| - r-base >=3.5 | ||||||||||||||||||||
| - r-base >=4.4 | ||||||||||||||||||||
| - r-abind | ||||||||||||||||||||
| - r-akima | ||||||||||||||||||||
| - r-climdex.pcic | ||||||||||||||||||||
|
|
@@ -123,5 +123,5 @@ dependencies: | |||||||||||||||||||
| - r-yaml | ||||||||||||||||||||
| # R packages needed for development | ||||||||||||||||||||
| - r-git2r # dependency of lintr | ||||||||||||||||||||
| - r-lintr ==3.1.2 | ||||||||||||||||||||
| - r-styler ==1.10.3 | ||||||||||||||||||||
| - r-lintr | ||||||||||||||||||||
| - r-styler | ||||||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should be able to get rid of those if we re-enable the pre-commit hook at ESMValTool/.pre-commit-config.yaml Lines 45 to 53 in 9bde7d3
and perform the currently failing test using pre-commit instead. We would just need to pin that pre-commit hook to the version where the checks passed (i.e. the version of the pre-commit hook that uses the versions of
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. all fun and games until I realized I lost you at pinning the pre-commit hook - how the heck would we know the version when that hook last passed the test? Unless you want me to write a Monte Carlo routine that loops over lintr hook versions π€£
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we not just skip the R-linting test in
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. actually, scratch that - it's prob a good idea to have an r-lintr test, let me see what I can do with that pre-commit version, I'll toss some coins πͺ
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've not forgot about this, am gonna try have a look at it tomorrow - sorry, I've been under a lot of snow elsewhere, bud
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. pre-commit config file brought back to original state in a2c5d63 - off to the docs to add the mention about style etc
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. docs modded in 88f3e41 - do we want to tell R folks to use the pre-commit way or r-linrs/styler way?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the changes V! I pushed a few additions to the docs in fdddae6 and removed the unit test that checks compliance with
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks great! I had doubts about keeping that fully skipped test, but I was afraid we'd have to use it again in the future should the R hook be left undeveloped (it diesn't look too actively maintained). Shall we merge then? πΊ
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, but let's first fix the docs build |
||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.