-
Notifications
You must be signed in to change notification settings - Fork 0
Update GHA and precommit #338
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
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
740402d
use air formatter and typos
jashapiro 4a525f4
Add ci for pre-commit
jashapiro e929404
use account id secret
jashapiro 2139355
temporarily disable R precommit
jashapiro 54c82e4
typos and associated formatting updates
jashapiro 97e0137
reenable all but lintr
jashapiro 25bc87a
reenable lintr
jashapiro File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,61 +1,35 @@ | ||
| # All available hooks: https://pre-commit.com/hooks.html | ||
| # R specific hooks: https://github.com/lorenzwalthert/precommit | ||
| repos: | ||
| - repo: https://github.com/posit-dev/air-pre-commit | ||
| # Air version | ||
| rev: 0.9.0 | ||
| hooks: | ||
| # Run the formatter | ||
| - id: air-format | ||
| - repo: https://github.com/crate-ci/typos | ||
| rev: v1.45.0 | ||
| hooks: | ||
| - id: typos | ||
| - repo: https://github.com/lorenzwalthert/precommit | ||
| rev: v0.4.3 | ||
| rev: v0.4.3.9021 | ||
| hooks: | ||
| - id: style-files | ||
| args: [--style_pkg=styler, --style_fun=tidyverse_style] | ||
| # codemeta must be above use-tidy-description when both are used | ||
| # - id: codemeta-description-updated | ||
| - id: use-tidy-description | ||
| - id: spell-check | ||
| exclude: > | ||
| (?x)^( | ||
| .*\.[rR]| | ||
| .*\.feather| | ||
| .*\.jpeg| | ||
| .*\.pdf| | ||
| .*\.png| | ||
| .*\.py| | ||
| .*\.RData| | ||
| .*\.rds| | ||
| .*\.Rds| | ||
| .*\.Rproj| | ||
| .*\.sh| | ||
| (.*/|)\.gitattributes| | ||
| (.*/|)\.gitignore| | ||
| (.*/|)\.gitlab-ci\.yml| | ||
| (.*/|)\.lintr| | ||
| (.*/|)\.pre-commit-.*| | ||
| (.*/|)\.Rbuildignore| | ||
| (.*/|)\.Renviron| | ||
| (.*/|)\.Rprofile| | ||
| (.*/|)\.travis\.yml| | ||
| (.*/|)appveyor\.yml| | ||
| (.*/|)DESCRIPTION| | ||
| (.*/|)NAMESPACE| | ||
| (.*/|)pixi\.toml| | ||
| (.*/|)pixi\.lock| | ||
| (.*/|)renv/settings\.dcf| | ||
| (.*/|)renv.*\.lock| | ||
| (.*/|)requirements.*\.in| | ||
| (.*/|)requirements.*\.txt| | ||
| (.*/|).*Dockerfile| | ||
| (.*/|)WORDLIST| | ||
| \.github/workflows/.*| | ||
| data/.*| | ||
| )$ | ||
| - id: lintr | ||
| - id: parsable-R | ||
| - id: no-browser-statement | ||
| - id: no-debug-statement | ||
| - id: deps-in-desc | ||
| exclude: docker/.*|renv/.* | ||
| - repo: https://github.com/pre-commit/pre-commit-hooks | ||
| rev: v4.6.0 | ||
| rev: v6.0.0 | ||
| hooks: | ||
| - id: check-added-large-files | ||
| args: ["--maxkb=200"] | ||
| - id: end-of-file-fixer | ||
| exclude: '\.Rd' | ||
| ci: | ||
| autofix_prs: true # set to false if we don't want fixes automatically applied by ci | ||
| autoupdate_schedule: quarterly | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| [format] | ||
| line-width = 100 | ||
| indent-width = 2 | ||
| indent-style = "space" | ||
| line-ending = "lf" | ||
| skip = ["stopifnot"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 badly want to suggest this, but I won't actually for obvious reasons. But clearly this should be...