feat: Implement Type-aware purity analysis and integrate boundary and enum extractor#213
Open
Muellersen wants to merge 253 commits intomainfrom
Open
feat: Implement Type-aware purity analysis and integrate boundary and enum extractor#213Muellersen wants to merge 253 commits intomainfrom
Muellersen wants to merge 253 commits intomainfrom
Conversation
…ready in there would be appended to the file once more
…ugh having a "return" without any type; fixed a bug where attributes would not have a type even though a type is defined the docstrings
…ion would wrongly be labeled as TypeVarType
…d a few bugs regarding the reexport check
…sections of docstrings will be merged now
…ng's with logging.info; various fixes
…s generator and adjusted code to make the tests pass
Add type_string attribute to class ParameterDocstring. Lets us use the extractors of boundaries and valid values, as they need the type_string, also update some imports
boundaries and valid values are added to ParameterDocstring, also updated the corresponding tests
they were added as comments temporarily, also updated snapshots
fixed them so that they run without errors
…tion updated snapshots
…or the loaded griffe data instead of parsing through it every time we search for a specific docstring
next, I have to implement the @pure annotation
…s generator and adjusted code to make the tests pass
🦙 MegaLinter status: ✅ SUCCESS
See detailed report in MegaLinter reports |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #213 +/- ##
==========================================
+ Coverage 99.84% 99.91% +0.06%
==========================================
Files 26 40 +14
Lines 2616 5616 +3000
==========================================
+ Hits 2612 5611 +2999
- Misses 4 5 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…fe-DS/Stub-Generator into ba-pm-extend-docstring-parser
Author
|
It seems like I have to update astroid, in order to make the poetry-with-codecov (3.12) check work, as the current astroid version is not compatible with python 3.12. I will try to do that soon. :) |
Author
|
@lars-reimann This branch can be merged now, but only after #185 was merged. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Summary of Changes
multiple_types : int, boolare extracted as["True", "False"]--old_purity_analysisas cli argument.pureorimpure.depends on #185