Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking β€œSign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --max-depth option to control diagram complexity #10077

Merged
merged 20 commits into from
Jan 24, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add command line option to limit depth
  • Loading branch information
Julfried committed Jan 5, 2025
commit af5fc28eabb2992421e5cf2320e63b0d35de3f76
16 changes: 16 additions & 0 deletions pylint/pyreverse/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,22 @@
"help": "Use colored output. Classes/modules of the same package get the same color.",
},
),
(
"max-depth",
{
"dest": "max_depth",
"action": "store",
"default": None,
"metavar": "<depth>",
"type": "int",
"group": OPTIONS_GROUPS["DISPLAY"],
"help": (
"Maximum depth in package/module hierarchy to display. A depth of 0 shows only "
"top-level packages, 1 shows one level of subpackages, etc. If not specified, "
"all packages/modules are shown."
),
},
),
(
"max-color-depth",
{
Expand Down