Skip to content

Commit 2536d36

Browse files
author
yohann
committed
fix: sepuku deals with "keep" section in fusen config yml
sepuku was raising a warning when a keep section was present in the fusen config file
1 parent 06dc261 commit 2536d36

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

R/sepuku_utils.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ list_flat_files_in_config_file <- function(
1212
return(character(0))
1313
} else {
1414
config_yml <- yaml::read_yaml(config_file)
15+
config_yml <- config_yml[!names(config_yml) %in% "keep"]
1516
return(
1617
unlist(
1718
lapply(config_yml, "[[", "path")

dev/flat_sepuku-utils.Rmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ list_flat_files_in_config_file <- function(
3030
return(character(0))
3131
} else {
3232
config_yml <- yaml::read_yaml(config_file)
33+
config_yml <- config_yml[!names(config_yml) %in% "keep"]
3334
return(
3435
unlist(
3536
lapply(config_yml, "[[", "path")

0 commit comments

Comments
 (0)