Bugfix: module loading, failed toc generation, aggressive argument regex, md rendering, other improvements and fixes.#101
Open
ltan10 wants to merge 13 commits intoml-tooling:mainfrom
Conversation
This reverts commit fc1b6fe.
Changed terminology of dataclass attribute header to fields. Dataclass with no attributes now no longer display `attribute/fields` header. Implement inclusion of class prefix for dataclasses.
…ontent Added missing include_toc docstring arg for generate_docs Fixed docstring for toc2md method. toc2md now return empty string if TOC is empty. TOC now includes summary description
Fix imported modules incorrectly listed as global variable. Values of global variables are now displayed.
…ooling#97) and improve argument parsing performance * Collapsed args regex matching to optimize performance, performing only a single test. * Argument name is stricter for python var naming convention
Deprecate usage of find_module() and fixed incorrect find_spec() usage Min python version for lazydoc is still 3.6+ due to fstring usage. (ml-tooling#94) Implement workaround for when relative imports is used in top level modules: Remove reliance on adding to sys.path for relative imports. Rework generator for directory style imports. Rework generator for module in sys.path style imports. Rework generator for file style imports. Show doc output location for verbosity. Update exception message if path is not recognized to be more meaningful. Relative imports will only work for modules at same or lower level.
9f86241 to
38ca824
Compare
Feat: Add support for `or` and `|` separator for argtype matching. Chore: Explicitly greedily match square brackets. Chore: Refactor _RE_BLOCKSTART_LIST regex pattern. Fix: Duplicate `kwargs` pattern in _RE_BLOCKSTART_LIST Feat: Add `Methods` to _RE_BLOCKSTART_LIST pattern
38ca824 to
0165b88
Compare
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.
What kind of change does this PR introduce?
Description:
https://#95 and Regex matching bug in code block detection #97:.attributeheader tofields.Checklist: