Skip to content

Commit

Permalink
feat(helper-cli): Extend the scope exclude generation for Poetry
Browse files Browse the repository at this point in the history
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 <frank_viernau@epam.com>
  • Loading branch information
fviernau committed Nov 2, 2023
1 parent 1d74f26 commit 91647b2
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 91647b2

Please sign in to comment.