Skip to content

Commit 00a702a

Browse files
committed
ci: added pre-commit hooks
1 parent 875dacc commit 00a702a

6 files changed

Lines changed: 48 additions & 12 deletions

File tree

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@
1414
^CRAN-SUBMISSION$
1515
^README\.qmd$
1616
^revdep$
17+
^\.pre-commit-config\.yaml$

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,5 @@ Meta
5353
!vignettes/*.qmd
5454
revdep
5555
/data-raw/debug.R
56+
57+
!.pre-commit-config.yaml

.pre-commit-config.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
default_install_hook_types:
2+
- pre-commit
3+
- commit-msg
4+
- post-commit
5+
6+
repos:
7+
- repo: https://github.com/pre-commit/pre-commit-hooks
8+
rev: v6.0.0
9+
hooks:
10+
- id: check-added-large-files
11+
- id: end-of-file-fixer
12+
- id: trailing-whitespace
13+
args: [ --markdown-linebreak-ext=md ]
14+
- id: detect-private-key
15+
16+
- repo: https://github.com/uker-troi-lab/commit_hooks.git
17+
rev: v0.0.1
18+
hooks:
19+
- id: check-commit-msg
20+
21+
- repo: https://github.com/kapsner/autonewsmd
22+
rev: 6cf561a825945de4c2a87a7a71bd5300a5a6e73c
23+
hooks:
24+
- id: changelog-helper
25+
- id: recreate-changelog

DESCRIPTION

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: mlsurvlrnrs
22
Title: R6-Based ML Survival Learners for 'mlexperiments'
3-
Version: 0.0.6.9003
4-
Authors@R:
3+
Version: 0.0.6.9004
4+
Authors@R:
55
person("Lorenz A.", "Kapsner", , "lorenz.kapsner@gmail.com", role = c("cre", "aut", "cph"),
66
comment = c(ORCID = "0000-0003-1866-860X"))
77
Description: Enhances 'mlexperiments'
@@ -16,16 +16,16 @@ Description: Enhances 'mlexperiments'
1616
License: GPL (>= 3)
1717
URL: https://github.com/kapsner/mlsurvlrnrs
1818
BugReports: https://github.com/kapsner/mlsurvlrnrs/issues
19-
Depends:
19+
Depends:
2020
R (>= 4.1.0)
21-
Imports:
21+
Imports:
2222
data.table,
2323
kdry,
2424
mlexperiments (>= 0.0.8),
2525
mllrnrs,
2626
R6,
2727
stats
28-
Suggests:
28+
Suggests:
2929
glmnet,
3030
lintr,
3131
measures,
@@ -36,12 +36,12 @@ Suggests:
3636
splitTools,
3737
survival,
3838
testthat (>= 3.0.1),
39-
xgboost (>= 3.1.0.1)
40-
VignetteBuilder:
39+
xgboost (>= 3.1.1.1)
40+
VignetteBuilder:
4141
quarto
4242
Config/testthat/edition: 3
4343
Config/testthat/parallel: false
44-
Date/Publication: 2025-10-16 08:13:10.092883 UTC
44+
Date/Publication: 2025-11-16 19:36:13.813829 UTC
4545
Encoding: UTF-8
4646
Roxygen: list(markdown = TRUE)
4747
SystemRequirements: Quarto command line tools

NEWS.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
# mlsurvlrnrs NEWS
44

5-
## Unreleased (2025-10-15)
5+
## Unreleased (2025-11-16)
66

77
#### Bug fixes
88

9+
- added adaptions for package to work with xgboost \> version 3
10+
([875dacc](https://github.com/kapsner/mlsurvlrnrs/tree/875dacc242318436955373ace052aa520df9e05c))
911
- fixed adaptions to new xgboost version
1012
([99824a3](https://github.com/kapsner/mlsurvlrnrs/tree/99824a3ef17d0bc7ace3ad5724d99c17a24dd4db))
1113
- work on fixing xgboost-aft learner
@@ -16,6 +18,11 @@
1618
- added unittest for usecase when learner-args are in param-grid
1719
([8027dfc](https://github.com/kapsner/mlsurvlrnrs/tree/8027dfc3440af0fc09be2ffdaa12ae267cb19a92))
1820

21+
#### CI
22+
23+
- added pre-commit hooks
24+
([e3f632e](https://github.com/kapsner/mlsurvlrnrs/tree/e3f632ebb4cc666992425efb872f7e0fdded7a70))
25+
1926
#### Other changes
2027

2128
- udated dev-version
@@ -24,7 +31,7 @@
2431
([a2ca4aa](https://github.com/kapsner/mlsurvlrnrs/tree/a2ca4aa32fcb7b4bef0df0a1bdf6fbe5601fe909))
2532

2633
Full set of changes:
27-
[`v0.0.6...8027dfc`](https://github.com/kapsner/mlsurvlrnrs/compare/v0.0.6...8027dfc)
34+
[`v0.0.6...e3f632e`](https://github.com/kapsner/mlsurvlrnrs/compare/v0.0.6...e3f632e)
2835

2936
## v0.0.6 (2025-09-09)
3037

data-raw/devstuffs.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ my_desc$set_authors(c(
2020
# Remove some author fields
2121
my_desc$del("Maintainer")
2222
# Set the version
23-
my_desc$set_version("0.0.6.9003")
23+
my_desc$set_version("0.0.6.9004")
2424
# The title of your package
2525
my_desc$set(Title = "R6-Based ML Survival Learners for 'mlexperiments'")
2626
# The description of your package
@@ -81,7 +81,7 @@ usethis::use_package("testthat", type = "Suggests", min_version = "3.0.1")
8181
usethis::use_package("lintr", type = "Suggests")
8282
usethis::use_package("quarto", type = "Suggests")
8383
usethis::use_package("glmnet", type = "Suggests")
84-
usethis::use_package("xgboost", type = "Suggests", min_version = "3.1.0.1")
84+
usethis::use_package("xgboost", type = "Suggests", min_version = "3.1.1.1")
8585
usethis::use_package("ranger", type = "Suggests")
8686
usethis::use_package("rpart", type = "Suggests")
8787
usethis::use_package("survival", type = "Suggests")
@@ -181,6 +181,7 @@ usethis::use_build_ignore("README.qmd")
181181
usethis::use_build_ignore("docs")
182182
usethis::use_build_ignore("Meta")
183183
usethis::use_build_ignore("revdep")
184+
usethis::use_build_ignore(".pre-commit-config.yaml")
184185

185186
usethis::use_git_ignore("!NEWS.md")
186187
usethis::use_git_ignore("!README.md")

0 commit comments

Comments
 (0)