-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
96 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -282,6 +282,7 @@ rstrip | |
rtype | ||
runtime | ||
se | ||
seaborn | ||
sep | ||
setcomp | ||
shortstrings | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
`pyreverse` now supports custom color palettes with the `--color-palette` option. | ||
|
||
Closes #6738 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
tests/pyreverse/functional/class_diagrams/colorized_output/custom_colors.puml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
@startuml classes | ||
set namespaceSeparator none | ||
class "CheckerCollector" as custom_colors.CheckerCollector #red { | ||
checker1 | ||
checker2 | ||
checker3 | ||
} | ||
class "ElseifUsedChecker" as pylint.extensions.check_elif.ElseifUsedChecker #green { | ||
msgs : dict | ||
name : str | ||
leave_module(_: nodes.Module) -> None | ||
process_tokens(tokens: list[TokenInfo]) -> None | ||
visit_if(node: nodes.If) -> None | ||
} | ||
class "ExceptionsChecker" as pylint.checkers.exceptions.ExceptionsChecker #yellow { | ||
msgs : dict | ||
name : str | ||
options : tuple | ||
open() -> None | ||
visit_binop(node: nodes.BinOp) -> None | ||
visit_compare(node: nodes.Compare) -> None | ||
visit_raise(node: nodes.Raise) -> None | ||
visit_tryexcept(node: nodes.TryExcept) -> None | ||
} | ||
class "StdlibChecker" as pylint.checkers.stdlib.StdlibChecker #yellow { | ||
msgs : dict[str, MessageDefinitionTuple] | ||
name : str | ||
deprecated_arguments(method: str) -> tuple[tuple[int | None, str], ...] | ||
deprecated_classes(module: str) -> Iterable[str] | ||
deprecated_decorators() -> Iterable[str] | ||
deprecated_methods() -> set[str] | ||
visit_boolop(node: nodes.BoolOp) -> None | ||
visit_call(node: nodes.Call) -> None | ||
visit_functiondef(node: nodes.FunctionDef) -> None | ||
visit_if(node: nodes.If) -> None | ||
visit_ifexp(node: nodes.IfExp) -> None | ||
visit_unaryop(node: nodes.UnaryOp) -> None | ||
} | ||
pylint.checkers.exceptions.ExceptionsChecker --* custom_colors.CheckerCollector : checker1 | ||
pylint.checkers.stdlib.StdlibChecker --* custom_colors.CheckerCollector : checker3 | ||
pylint.extensions.check_elif.ElseifUsedChecker --* custom_colors.CheckerCollector : checker2 | ||
@enduml |
10 changes: 10 additions & 0 deletions
10
tests/pyreverse/functional/class_diagrams/colorized_output/custom_colors.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from pylint.checkers.exceptions import ExceptionsChecker | ||
from pylint.checkers.stdlib import StdlibChecker | ||
from pylint.extensions.check_elif import ElseifUsedChecker | ||
|
||
|
||
class CheckerCollector: | ||
def __init__(self): | ||
self.checker1 = ExceptionsChecker(None) | ||
self.checker2 = ElseifUsedChecker(None) | ||
self.checker3 = StdlibChecker(None) |
3 changes: 3 additions & 0 deletions
3
tests/pyreverse/functional/class_diagrams/colorized_output/custom_colors.rc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[testoptions] | ||
output_formats=puml | ||
command_line_args=-S --colorized --max-color-depth=2 --color-palette=red,green,yellow |