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

Updating the testimony to allow dynamic analysis #157

Conversation

zpetrace
Copy link
Contributor

This should solve or at least help with Issue #91

@zpetrace
Copy link
Contributor Author

first part of the changes:

parser.py:

  • added more imports
  • modified DocstringParser class to include a method load_and_parse which imports the module and then calls parse
  • load_and_parse dynamically imports the specified module, iterates through each callable in it, and calls parse on each callable's docstring
  • the existing parse function is used to handle the docstring parsing and messages are collected to report any issues during parsing

cli.py:

  • utilize the updated DocstringParser class (with the load_and_parse method) within the testimony command to dynamically load modules, run decorators, and parse their docstrings
  • capture the results from the load_and_parse method and format them into the report
  • adding options to specify which modules to dynamically import and analyze

@zpetrace zpetrace closed this Oct 31, 2024
@zpetrace zpetrace deleted the zpetrace/testimony_dynamic_analysis branch October 31, 2024 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant