-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Refactor depth filtering logic #10200
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
Merged
Pierre-Sassoulas
merged 39 commits into
pylint-dev:main
from
Julfried:refactor-diagram-class
Mar 1, 2025
+346
−190
Merged
Changes from 7 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
0754418
Remove current depth filtering logic
Julfried 5a3bd44
add depth filtering logic to diadefslib
Julfried 1301d76
add comments
Julfried 5cb79ff
add type ignore comment for max_depth return value
Julfried 8946c26
Remove tests for legacy depth filtering logic
Julfried 3ea6824
Add fixtures for a mocked node and DiaDefGenerator
Julfried 55815df
Add tests for _should_include_by_depth
Julfried ca4f2df
Apply suggestions from code review
Julfried 369e19d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 826bcca
Modify argument flow to also pass args to DiadefsHandler
Julfried a431ca4
Fix diadefs tests
Julfried 25877bb
Add fixture for default args
Julfried 6d50857
Fix diagram tests
Julfried 82ab7cd
Fix writer tests
Julfried 8add6cb
Implement depth limiting relative to the shallowest specified package…
Julfried fcec1e5
Modify default args to pass writer tests
Julfried f2f806e
Update diadefs tests
Julfried 11d109b
Add tests for relative depth limiting
Julfried e767914
Precompute node depths in costructor of DiaDefGenerator
Julfried 2f15224
Only pre-calculate argument depths if a max_depth is specified
Julfried 903116b
Add a function to detect leaf nodes in args
Julfried 6b30097
Compute package depths of the specified args based on the determined …
Julfried a25237f
Emit a warning if user specifies non leaf nodes
Julfried f55677e
shorten include by depth
Julfried c9e7259
Revert "shorten include by depth"
Julfried fbc5309
Parameterize depth limited config
Julfried a484620
Revert "Parameterize depth limited config"
Julfried 8601863
construct generator using a factory function
Julfried 19f3907
Simplify test case definition to be more explicit
Julfried 801916b
Update docstring of _should_include_by_depth function
Julfried e4a86e1
Fix failing tests in test_diadefs.py
Julfried 2d59f0d
Fix failing tests
Julfried b5516a0
Clean up tests
Julfried 0b3af62
Add a tests for get_leaf_node function
Julfried 5902e4d
Refactor get_leaf_nodes method to use instance arguments directly
Julfried c33e88b
Apply suggestions from code review
Julfried 33850fa
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 918861a
Fix failing tests
Julfried 0e629d9
Fix stackelevel
Julfried File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.