Skip to content

Commit aa4bb70

Browse files
committed
precommit hook
1 parent 9411357 commit aa4bb70

23 files changed

Lines changed: 447 additions & 184 deletions

.Rbuildignore

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
^.*\.Rproj$
2-
^\.Rproj\.user$
3-
cran-comments.md
4-
figure
1+
.travis.yml
2+
AUTHORS
53
README.md
64
README.rmd
7-
.travis.yml
85
README_cache
6+
^.*\.Rproj$
97
^CRAN-RELEASE$
8+
^CRAN-SUBMISSION$
9+
^\.Rproj\.user$
1010
^\.github$
11+
^\.pre-commit-config\.yaml$
1112
^_pkgdown\.yml$
12-
^pkgdown$
1313
^docs
14-
^docs/*.*
1514
^docs/*
16-
^CRAN-SUBMISSION$
15+
^docs/*.*
16+
^pkgdown$
1717
^revdep
18-
AUTHORS
18+
cran-comments.md
19+
figure

.github/workflows/linting.yaml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ src/*.so
4545
src/*.dll
4646

4747
# revdep testing
48-
revdep/
48+
revdep/

.pre-commit-config.yaml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
# All available hooks: https://pre-commit.com/hooks.html
2+
# R specific hooks: https://github.com/lorenzwalthert/precommit
3+
repos:
4+
- repo: https://github.com/lorenzwalthert/precommit
5+
rev: v0.4.3.9021
6+
hooks:
7+
- id: style-files
8+
args: [--style_pkg=styler, --style_fun=tidyverse_style]
9+
# - id: roxygenize
10+
# # roxygen requires loading pkg -> add dependencies from DESCRIPTION
11+
# additional_dependencies:
12+
# - Matrix
13+
# - Rcpp
14+
- id: use-tidy-description
15+
- id: spell-check
16+
exclude: >
17+
(?x)^(
18+
.*\.[rR]|
19+
.*\.feather|
20+
.*\.jpeg|
21+
.*\.pdf|
22+
.*\.png|
23+
.*\.py|
24+
.*\.RData|
25+
.*\.rds|
26+
.*\.Rds|
27+
.*\.Rproj|
28+
.*\.sh|
29+
(.*/|)\.gitignore|
30+
(.*/|)\.gitlab-ci\.yml|
31+
(.*/|)\.lintr|
32+
(.*/|)\.pre-commit-.*|
33+
(.*/|)\.Rbuildignore|
34+
(.*/|)\.Renviron|
35+
(.*/|)\.Rprofile|
36+
(.*/|)\.travis\.yml|
37+
(.*/|)appveyor\.yml|
38+
(.*/|)NAMESPACE|
39+
(.*/|)renv/settings\.dcf|
40+
(.*/|)renv\.lock|
41+
(.*/|)WORDLIST|
42+
\.github/workflows/.*|
43+
data/.*|
44+
)$
45+
- id: lintr
46+
args: [--warn_only]
47+
verbose: false
48+
- id: readme-rmd-rendered
49+
- id: parsable-R
50+
- id: no-browser-statement
51+
- id: no-print-statement
52+
- id: no-debug-statement
53+
- id: deps-in-desc
54+
- id: pkgdown
55+
- repo: https://github.com/pre-commit/mirrors-clang-format
56+
rev: v22.1.2
57+
hooks:
58+
- id: clang-format
59+
args: ["--style=Google"]
60+
exclude: ./src/RcppExports.cpp
61+
- repo: https://github.com/cpplint/cpplint
62+
rev: 2.0.2
63+
hooks:
64+
- id: cpplint
65+
args:
66+
- --exclude=src/RcppExports.cpp
67+
- repo: https://github.com/pre-commit/pre-commit-hooks
68+
rev: v6.0.0
69+
hooks:
70+
- id: check-added-large-files
71+
args: ['--maxkb=200']
72+
- id: file-contents-sorter
73+
files: '^\.Rbuildignore$'
74+
# - id: end-of-file-fixer
75+
# exclude: '\.Rd,R/RcppExports.R'
76+
- repo: https://github.com/pre-commit-ci/pre-commit-ci-config
77+
rev: v1.6.1
78+
hooks:
79+
# Only required when https://pre-commit.ci is used for config validation
80+
- id: check-pre-commit-ci-config
81+
- repo: local
82+
hooks:
83+
- id: forbid-to-commit
84+
name: Don't commit common R artifacts
85+
entry: Cannot commit .Rhistory, .RData
86+
language: fail
87+
files: '\.(Rhistory|RData|)$'
88+
# `exclude: <regex>` to allow committing specific files
89+
90+
ci:
91+
autoupdate_schedule: monthly

DESCRIPTION

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ Imports:
2828
Rcpp
2929
Suggests:
3030
testthat,
31-
spelling
31+
spelling,
32+
mclust,
33+
ggplot2
3234
LinkingTo: Rcpp
3335
RoxygenNote: 7.3.3
3436
Language: en-US

README.qmd

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
2-
title: "aricode: fast computations of clustering comparison measures"
2+
title: "aricode"
3+
subtitle: "fast computations of clustering comparison measures"
34
format: gfm
45
---
56

@@ -10,8 +11,6 @@ knitr::opts_chunk$set(
1011
)
1112
```
1213

13-
# aricode
14-
1514
<!-- badges: start -->
1615
[![R-CMD-check](https://github.com/jchiquet/aricode/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/jchiquet/aricode/actions/workflows/R-CMD-check.yaml)
1716
[![CRAN Status](https://www.r-pkg.org/badges/version/aricode)](https://CRAN.R-project.org/package=aricode)
@@ -121,4 +120,3 @@ p.timings <- ggplot(timings, aes(x = n, y = time, colour = method)) +
121120
122121
p.timings + ggtitle("number of classes grows with n") + theme_bw()
123122
```
124-

_pkgdown.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
templates:
22
params:
33
bootswatch: readable
4+
url: https://github.com/jchiquet/aricode
45

56
navbar:
67
title: "aricode"
@@ -16,4 +17,3 @@ navbar:
1617
right:
1718
- icon: fa-github
1819
href: https://github.com/jchiquet/aricode
19-

inst/WORDLIST

Lines changed: 141 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,155 @@
1+
agroparistech
2+
al
3+
Alain
14
AMI
25
ARI
6+
aricode
7+
Arlot
8+
aut
9+
automatiquement
10+
bersani
11+
Bersani
12+
bfeebcaf
13+
bootswatch
14+
BugReports
15+
Calcul
16+
calcul
17+
CallEntries
18+
CallMethodDef
19+
cb
20+
Celisse
21+
cerr
22+
Changelog
23+
chiquet
24+
Chiquet
25+
classe
26+
classi
27+
classiSEXP
28+
clustComp
329
CMD
30+
commencent
31+
compileAttributes
32+
comptage
33+
Comptage
34+
const
35+
countPairs
36+
cout
37+
cpp
38+
cre
39+
ctb
40+
de
41+
dervieux
42+
Dervieux
43+
des
44+
DL
45+
dll
46+
DllInfo
47+
doi
48+
du
49+
emi
50+
endif
51+
entropies
452
Epps
53+
et
54+
factorielles
55+
faf
56+
fd
57+
florent
58+
Florent
59+
gagner
60+
gcc
61+
getRank
62+
ggplot
63+
github
64+
gmail
65+
guillem
66+
Guillem
67+
Harchaoui
68+
href
69+
https
70+
hypergéométrique
71+
idx
72+
ifdef
73+
indexCur
74+
individus
75+
inrae
76+
IntegerVector
77+
jchiquet
578
JMLR
79+
jSEXP
80+
julien
81+
Julien
82+
Lajugie
83+
les
84+
lfactorial
85+
lgamma
86+
libérée
687
Lifecycle
88+
LinkingTo
89+
LogicalVector
90+
LTS
791
MARIraw
92+
martina
93+
mclust
94+
nameClassi
95+
navbar
96+
nb
97+
nbIndex
98+
ni
899
NID
100+
nij
101+
nj
9102
NMI
103+
Nmni
104+
Nmnj
105+
Nombre
106+
numberPair
107+
NumericVector
10108
NVI
109+
oldrel
11110
ORCID
12-
SortPairs
13-
Vinh
14-
Xuan
15-
al
16-
clustComp
17-
doi
18-
entropies
19-
et
20-
mclust
111+
paires
112+
params
113+
PMLR
114+
Probabilité
115+
Pré
21116
radix
117+
Rcerr
118+
Rcout
119+
rcpp
120+
Rcpp
121+
RCPP
122+
RcppExport
123+
registerRoutines
124+
rigaill
125+
Rigaill
126+
rngScope
127+
RNGScope
128+
RObject
129+
Rostream
130+
ROSTREAM
22131
roxygen
132+
RoxygenNote
133+
Rémi
134+
selon
135+
SEXP
136+
SHA
137+
SortPairs
23138
sortPairs
139+
sundqvist
140+
Sundqvist
141+
Sylvain
142+
temporaire
143+
terme
144+
testthat
145+
tmp
146+
Tri
147+
ubuntu
148+
uniques
149+
useDynamicSymbols
150+
valentin
151+
Vinh
152+
Xuan
153+
Zaid
154+
à
155+
Équivalent

0 commit comments

Comments
 (0)