From 91647b22299d97bed05c97412b54f8dcc900ce4b Mon Sep 17 00:00:00 2001 From: Frank Viernau Date: Thu, 2 Nov 2023 13:20:35 +0100 Subject: [PATCH] feat(helper-cli): Extend the scope exclude generation for Poetry Poetry's official docs mention several group names [1] which are not hard-coded but likely commonly used. So, extend the generation for these names. While at it, also add "lint" which is also used by some projects. [1] https://python-poetry.org/docs/master/managing-dependencies/ Signed-off-by: Frank Viernau --- .../repoconfig/GenerateScopeExcludesCommand.kt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/helper-cli/src/main/kotlin/commands/repoconfig/GenerateScopeExcludesCommand.kt b/helper-cli/src/main/kotlin/commands/repoconfig/GenerateScopeExcludesCommand.kt index a9bf72cd5dd5e..12ec74771fea4 100644 --- a/helper-cli/src/main/kotlin/commands/repoconfig/GenerateScopeExcludesCommand.kt +++ b/helper-cli/src/main/kotlin/commands/repoconfig/GenerateScopeExcludesCommand.kt @@ -245,6 +245,21 @@ private fun getScopeExcludesForPackageManager(packageManagerName: String): List< pattern = "dev", reason = ScopeExcludeReason.DEV_DEPENDENCY_OF, comment = "Packages for development only." + ), + ScopeExclude( + pattern = "docs", + reason = ScopeExcludeReason.DOCUMENTATION_DEPENDENCY_OF, + comment = "Packages for building the documentation only." + ), + ScopeExclude( + pattern = "lint", + reason = ScopeExcludeReason.DEV_DEPENDENCY_OF, + comment = "Packages for static code analysis only." + ), + ScopeExclude( + pattern = "test", + reason = ScopeExcludeReason.TEST_DEPENDENCY_OF, + comment = "Packages for testing only." ) ) "SBT" -> listOf(