Skip to content

Commit 5ced5ec

Browse files
Merge pull request #415 from lorenzwalthert/visual-mode
Visual mode compliant markdown formatting
2 parents 5466ad5 + 68dfffa commit 5ced5ec

File tree

8 files changed

+87
-103
lines changed

8 files changed

+87
-103
lines changed

NEWS.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,21 @@ editor_options:
66

77
# precommit v0.3.0.9000
88

9-
- Fix bug that prevented pkg load outside directories with precommit files
10-
(@mpadge, #413).
9+
- Ensure sorting for `spell-check` hook is case-insensitive on all
10+
operating systems. This may re-order your whole `inst/WORDLIST`
11+
(#405).
12+
- Fix bug that prevented pkg load outside directories with precommit
13+
files (@mpadge, #413).
1114
- hook `forbid-to-commit` in template `.pre-commit-config.yaml` has
12-
now the correct `exclude-files` regular expression to ignore
13-
`.csv`, `.RData`, `.Rds`, `.rds` and `.Rhistory` (#410).
15+
now the correct `exclude-files` regular expression to ignore `.csv`,
16+
`.RData`, `.Rds`, `.rds` and `.Rhistory` (#410).
1417
- `.pre-commit-config.yaml` templates now contain hook to validate the
1518
[pre-commit.ci](https://pre-commit.ci) configuration (#407).
1619
- `options(install.packages.compile.from.source = "never")` is used in
17-
the CI to avoid failing builds due to missing build-time deps (#412).
20+
the CI to avoid failing builds due to missing build-time deps
21+
(#412).
22+
- All (R)md files in that repo are now formatted in a pandoc-compliant
23+
way (#415).
1824

1925
# precommit v0.3.0
2026

README.Rmd

Lines changed: 11 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -15,39 +15,23 @@ knitr::opts_chunk$set(
1515

1616
<!-- badges: start -->
1717

18+
[![CRAN status](https://www.r-pkg.org/badges/version/precommit)](https://CRAN.R-project.org/package=precommit) [![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental) [![R build status](https://github.com/lorenzwalthert/precommit/workflows/R-CMD-check/badge.svg)](https://github.com/lorenzwalthert/precommit/actions)
1819

19-
[![CRAN
20-
status](https://www.r-pkg.org/badges/version/precommit)](https://CRAN.R-project.org/package=precommit)
21-
[![Lifecycle:
22-
experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)
23-
[![R build
24-
status](https://github.com/lorenzwalthert/precommit/workflows/R-CMD-check/badge.svg)](https://github.com/lorenzwalthert/precommit/actions)
2520
<!-- badges: end -->
2621

22+
[Pre-commit hooks](https://pre-commit.com) are tests that run each time you attempt to commit. If the tests pass, the commit will be made, otherwise not. A very basic test is to check if the code is parsable, making sure you have not forgotten a comma, brace or quote. You can run hooks locally and/or in the cloud:
2723

28-
[Pre-commit hooks](https://pre-commit.com) are tests that run each time you
29-
attempt to commit. If the tests pass, the commit will be made, otherwise not. A
30-
very basic test is to check if the code is parsable, making sure you have not
31-
forgotten a comma, brace or quote. You can run hooks locally and/or in the
32-
cloud:
24+
- As a check before local commits: This requires installing pre-commit.
3325

34-
* As a check before local commits: This requires installing pre-commit.
35-
36-
* As a CI check with <https://pre-commit.ci>: If you want to enforce passing
37-
hooks on pull requests (and auto-fix trivial problems like styling) even if
38-
the committer does not have a local installation.
39-
26+
- As a CI check with <https://pre-commit.ci>: If you want to enforce passing hooks on pull requests (and auto-fix trivial problems like styling) even if the committer does not have a local installation.
4027

4128
## Goals of the package
4229

4330
The goal of this package is to twofold:
4431

45-
- Provide a [set of
46-
hooks](https://lorenzwalthert.github.io/precommit/articles/available-hooks.html)
47-
that are useful when your git repo contains R code.
32+
- Provide a [set of hooks](https://lorenzwalthert.github.io/precommit/articles/available-hooks.html) that are useful when your git repo contains R code.
4833

49-
- Provide [usethis](https://github.com/r-lib/usethis)-like functionality for
50-
common tasks such as installation and set-up and config file modification.
34+
- Provide [usethis](https://github.com/r-lib/usethis)-like functionality for common tasks such as installation and set-up and config file modification.
5135

5236
## Why do I need pre-commit hooks?
5337

@@ -56,20 +40,14 @@ The goal of this package is to twofold:
5640
<figcaption>By <a href=https://twitter.com/dataandme/status/1255510799273132032>Mara Averick</a></figcaption>
5741
</figure>
5842

59-
For a more in-depth explanation and even more reasons, see
60-
`vignette("why-use-hooks")`.
43+
For a more in-depth explanation and even more reasons, see `vignette("why-use-hooks")`.
6144

62-
## Documentation
45+
## Documentation
6346

6447
The following online docs are available:
6548

66-
- [latest CRAN release](https://lorenzwalthert.github.io/precommit/).
49+
- [latest CRAN release](https://lorenzwalthert.github.io/precommit/).
6750

68-
- [GitHub development
69-
version](https://lorenzwalthert.github.io/precommit/dev/).
51+
- [GitHub development version](https://lorenzwalthert.github.io/precommit/dev/).
7052

71-
These only cover the functionality added on top of the pre-commit framework by
72-
this package. Everything else is covered in the extensive [online
73-
documentation](https://pre-commit.com) of the pre-commit framework itself,
74-
including how to create hooks for actions like `git push` or `git checkout`,
75-
create local hooks etc.
53+
These only cover the functionality added on top of the pre-commit framework by this package. Everything else is covered in the extensive [online documentation](https://pre-commit.com) of the pre-commit framework itself, including how to create hooks for actions like `git push` or `git checkout`, create local hooks etc.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ status](https://www.r-pkg.org/badges/version/precommit)](https://CRAN.R-project.
1111
experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)
1212
[![R build
1313
status](https://github.com/lorenzwalthert/precommit/workflows/R-CMD-check/badge.svg)](https://github.com/lorenzwalthert/precommit/actions)
14+
1415
<!-- badges: end -->
1516

1617
[Pre-commit hooks](https://pre-commit.com) are tests that run each time

cran-comments.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@ This is a re-submission to failing tests caused by a roxygen 7.2.0.
22

33
## Test environments
44

5-
* ubuntu 18.04 (on GitHub Actions): R 4.2
6-
* Windows (on GitHub Actions): R 4.2
7-
* macOS (on GitHub Actions): R 4.2
8-
* win-builder: R devel
5+
- ubuntu 18.04 (on GitHub Actions): R 4.2
6+
- Windows (on GitHub Actions): R 4.2
7+
- macOS (on GitHub Actions): R 4.2
8+
- win-builder: R devel
99

1010
## R CMD check results
1111

12-
0 errors | 0 warnings | 0 notes
13-
12+
0 errors \| 0 warnings \| 0 notes
1413

1514
## Downstream Dependencies
1615

inst/WORDLIST

Lines changed: 51 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,21 @@
1-
Affero
2-
Averick
3-
CLI
4-
CMD
5-
Ctrl
6-
EOF
7-
Ei
8-
Eic
9-
Gitlab
10-
Homebrew
11-
IssueHunt
12-
KernSmooth
13-
Ko
14-
LF
15-
Liberapay
16-
Lifecycle
17-
MERCHANTABILITY
18-
Otechie
19-
Patreon
20-
RData
21-
RSMP
22-
RStudio
23-
Rbuildignore
24-
Rdata
25-
Rds
26-
Renviron
27-
Resubmission
28-
Rhistory
29-
Rnw
30-
RoxygenNote
31-
Rprofile
32-
Rproj
33-
Rr
34-
Rscript
35-
SHA
36-
Sublicensing
37-
Sys
38-
SystemRequirements
39-
Tidelift
40-
UCRT
41-
Uninstallation
42-
Unstaged
43-
Upvote
44-
VignetteBuilder
45-
WIPO
46-
Walthert
47-
Za
481
ae
2+
Affero
493
api
504
appveyor
515
arg
526
args
537
artific
548
autoupdate
9+
Averick
5510
bd
5611
beaefa
5712
behaviour
5813
bliblablupp
5914
cfe
6015
ci
16+
CLI
6117
cli
18+
CMD
6219
cmd
6320
codemeta
6421
codemetar
@@ -73,21 +30,25 @@ copyrightable
7330
cp
7431
cran
7532
csv
33+
Ctrl
7634
dcf
7735
deps
7836
desc
7937
dev
8038
dir
8139
dirname
82-
docType
8340
docopt
8441
docsearch
42+
docType
8543
dontrun
8644
donttest
45+
Ei
46+
Eic
8747
elif
8848
emph
8949
entrypoint
9050
env
51+
EOF
9152
eval
9253
exlucded
9354
fi
@@ -100,9 +61,11 @@ getwd
10061
gh
10162
github
10263
gitignore
64+
Gitlab
10365
grDevices
10466
grepl
10567
gsub
68+
Homebrew
10669
href
10770
http
10871
https
@@ -112,17 +75,23 @@ impl
11275
init
11376
io
11477
isAvailable
115-
isTRUE
78+
IssueHunt
11679
issuehunt
80+
isTRUE
11781
jpeg
11882
json
83+
KernSmooth
11984
knitr
85+
Ko
12086
ko
12187
lang
12288
lapply
89+
LF
12390
lgpl
91+
Liberapay
12492
liberapay
12593
licensors
94+
Lifecycle
12695
lintr
12796
loadCache
12897
lorenz
@@ -132,6 +101,7 @@ macOS
132101
magrittr
133102
maxkb
134103
md
104+
MERCHANTABILITY
135105
mgcv
136106
miniconda
137107
mis
@@ -149,11 +119,14 @@ nt
149119
num
150120
oneliner
151121
os
122+
Otechie
152123
otechie
153124
overscope
154125
packageVersion
126+
pandoc
155127
params
156128
parsable
129+
Patreon
157130
patreon
158131
pkgapi
159132
pkgdown
@@ -166,63 +139,91 @@ precommithooks
166139
proj
167140
purrr
168141
py
169-
rR
142+
Rbuildignore
170143
rc
144+
RData
145+
Rdata
146+
Rds
171147
rds
172148
readLines
173149
readme
174150
recognised
175151
relicensing
176152
renv
153+
Renviron
177154
repo
178155
repos
156+
Resubmission
179157
reticulate
158+
Rhistory
180159
rlang
181160
rmarkdown
182161
rmd
162+
Rnw
183163
rnw
184164
roclet
185165
roclets
186166
ropenscilabs
187167
roxygen
188168
roxygenise
189169
roxygenize
170+
RoxygenNote
190171
rpart
172+
Rprofile
173+
Rproj
191174
rprojroot
175+
Rr
176+
rR
177+
Rscript
178+
RSMP
179+
RStudio
192180
rstudio
193181
rstudioapi
194182
saveCache
195183
seealso
196184
sep
197185
setdiff
186+
SHA
198187
stderr
199188
stdout
200189
sterr
201190
stopifnot
202191
styler
203192
sublicenses
193+
Sublicensing
194+
Sys
195+
SystemRequirements
204196
tcltk
205197
tempfile
206198
testthat
207199
tibble
200+
Tidelift
208201
tidelift
209202
tidyverse
210203
toolchain
211204
trailingOnly
212205
travis
213206
tryCatch
214207
ubuntu
208+
UCRT
215209
uninitialised
210+
Uninstallation
216211
unlist
217212
unname
213+
Unstaged
214+
Upvote
218215
usethis
219216
usr
217+
VignetteBuilder
218+
Walthert
220219
walthert
221220
wd
221+
WIPO
222222
withr
223223
wordlist
224224
writeLines
225225
www
226226
yaml
227227
yihui
228228
yml
229+
Za

0 commit comments

Comments
 (0)