From 5fe002fc51bea27e76ba5822c490919692c9b5da Mon Sep 17 00:00:00 2001 From: Christian Banse Date: Tue, 18 Jul 2023 09:23:11 +0200 Subject: [PATCH] Removing hidden dependency between `yarnInstall` and `spotlessPython` Fixes #1240 --- .../src/main/kotlin/cpg.formatting-conventions.gradle.kts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/buildSrc/src/main/kotlin/cpg.formatting-conventions.gradle.kts b/buildSrc/src/main/kotlin/cpg.formatting-conventions.gradle.kts index 9f8c7d874e..4c739ba254 100644 --- a/buildSrc/src/main/kotlin/cpg.formatting-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/cpg.formatting-conventions.gradle.kts @@ -108,6 +108,11 @@ spotless { } python { + targetExclude( + fileTree(project.projectDir) { + include("**/node_modules") + } + ) target("src/main/**/*.py") licenseHeader(headerWithHashes, "from").yearSeparator(" - ") } @@ -116,4 +121,4 @@ spotless { target("src/main/golang/**/*.go") licenseHeader(headerWithStars, "package").yearSeparator(" - ") } -} \ No newline at end of file +}