-
Notifications
You must be signed in to change notification settings - Fork 519
Add PythonDependencyFile trait for polymorphic dependency management #7274
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
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
d9a0e22
initial version of the trait
Jenson3210 fc1d0ca
initial version of the trait
Jenson3210 c1d13d5
initial version of the trait
Jenson3210 e862ed2
initial version of the trait
Jenson3210 3013e78
Also use the trait for RemoveDependency and ChangeDependency
Jenson3210 f495f4d
Improved docs
Jenson3210 40a0f9a
Added tests for requirements.txt files
Jenson3210 2cb6a83
Added Pipfile support
Jenson3210 2528b41
further optimizations
Jenson3210 8ee97cf
further optimizations
Jenson3210 9f1684a
Merge branch 'main' into python-dependencies-trait
Jenson3210 db11436
Call stopAfterPreVisit() before instanceof check in Python dependency…
timtebeek d2f7462
Use Path instead of String for projectsToUpdate in Python dependency …
timtebeek 0b482e4
Simplify scanner guard clauses and fix literal type check in PyProjec…
timtebeek 45f3407
Pass cursor to visitNonNull in PipfileFile and PyProjectFile instance…
timtebeek 9b5f3d2
Use Path.endsWith() instead of getFileName().toString() for filename …
timtebeek 0aa380a
Use ListUtils.map instead of boolean changed pattern in PipfileFile a…
timtebeek 8d182a5
Use Cursor.firstEnclosing/dropParentUntil and ListUtils.concat for cu…
timtebeek d80dd0c
Remove redundant equality checks where withValue already implies iden…
timtebeek a9ece18
Use Markers.setByType instead of removeByType + addIfAbsent
timtebeek 6478374
Hoist PythonDependencyFile.Matcher to visitor field and fix remaining…
timtebeek 82254a0
Restore equality guards in version update methods to fix idempotency
timtebeek 8ae5bd9
Unify scope semantics across PythonDependencyFile trait methods
Jenson3210 13cdf2f
Return noop visitor when projectsToUpdate is empty
Jenson3210 53dc123
Use Path instead of String in correspondingPyprojectPath and lock fil…
timtebeek c73b795
Clean up formatting and modernize test code
timtebeek 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
Oops, something went wrong.
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.