From ad262196ba81c0702447e0294c1c5c75d7ddebfe Mon Sep 17 00:00:00 2001 From: kpj Date: Tue, 8 Sep 2020 09:11:54 +0200 Subject: [PATCH] [Snakemake] Also lint 'Snakefile' (without '.smk' suffix) --- lib/linter.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/linter.sh b/lib/linter.sh index 0d098509..03c094b7 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -1858,7 +1858,7 @@ if [ "${VALIDATE_SNAKEMAKE}" == "true" ]; then # Lint the files with snakefmt # ################################ # LintCodebase "FILE_TYPE" "LINTER_NAME" "LINTER_CMD" "FILE_TYPES_REGEX" "FILE_ARRAY" - LintCodebase "SNAKEMAKE" "snakefmt" "snakefmt --config ${SNAKEMAKE_LINTER_RULES} --diff" ".*\.\(smk\)\$" "${FILE_ARRAY_SNAKEMAKE[@]}" + LintCodebase "SNAKEMAKE" "snakefmt" "snakefmt --config ${SNAKEMAKE_LINTER_RULES} --diff" "\(Snakefile|.*\.smk\)\$" "${FILE_ARRAY_SNAKEMAKE[@]}" fi ######################