-
Notifications
You must be signed in to change notification settings - Fork 1
feat: Implement Type-aware purity analysis and integrate boundary and enum extractor #213
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
base: main
Are you sure you want to change the base?
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
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. :) |
@lars-reimann This branch can be merged now, but only after #185 was merged. |
Summary of Changes
multiple_types : int, bool
are extracted as["True", "False"]
--old_purity_analysis
as cli argument.pure
orimpure
.depends on #185