Commit Graph

24 Commits (5a868788116144e047b62fc3fc14ebe1da605c3c)

Author SHA1 Message Date
Ashley Whetter 5a86878811 Fixed Python subpackages having incomplete names 7 years ago
Eric Holscher 3531f5560a Merge remote-tracking branch 'origin/master' into cleanup-june 7 years ago
Ashley Whetter 86a9ffdd60 Fixed lint errors 7 years ago
Eric Holscher 8c1016f8c7 Fix linting 7 years ago
Anthony 152ea1a521 Merge pull request #104 from rtfd/python-ast
Start altering the pydocstyle AST parser for our needs
8 years ago
Anthony Johnson 715b6662e5
Fix Python argument parsing for Call nodes
This previous was throwing exceptions in some cases where Attribute nodes were
used instead of Name nodes.
8 years ago
Anthony Johnson 2603729925
Fix some more parsing issues 8 years ago
Anthony Johnson 0faeb500ee More fixes 8 years ago
Anthony Johnson 3c6e0e4015 Start altering the pydocstyle AST parser for our needs
This forks some of the pydocstyle AST parser into out mapper. Eventually, some
of the other operations such as parsing arguments and performing full name
lookup can be moved in as well. For now, this is not doing any extra assignment
tracking/etc, several of these operations will just throw this information out.

Refs #99
8 years ago
Eric Holscher c3db6e5bc8 Python 3 fixes 8 years ago
Eric Holscher 624eeff030 Break out toctree into separate file.
Also add lots of docstrings,
so hopefully someone can understand this some day.
8 years ago
Anthony Johnson 809c27ac6d Lint fixes 8 years ago
Anthony Johnson f607d5e1db Improvements to pydocstyle Python parsing
* Moves relative path parsing away from the base mapper implementation
* Change argument parsing from splitting first line of source with ',' to use
  AST traversal instead. This is not complete, but mostly PoC for now. Full
  traversal into argument type nodes will allow us to get nested dict() etc.
  We should open a ticket to track this work
* Cleans up some of the templates to reduce duplicate titles
* Adds a directive for nesting rST from constructs that might have headings.
  Remove the first heading in this case to address the case where a module has a
  docstring with a heading up front
* Adds tests
* Replaces example module with module that has more failing cases of parsing

Closes #78
Fixes #80
Fixes #81
Fixes #82
Fixes #83
Fixes #84
Fixes #85
8 years ago
Anthony Johnson fbe58022c5 Drop __repr__ method on python mapper
We aren't using this pattern in the other mappers. Something we could add, but
out of scope here.
8 years ago
Anthony Johnson a5a34df7f4 Basic cleanup on docstrings, import order 8 years ago
Eric Holscher 8e97201423 A few more PYthon upgrades 8 years ago
Eric Holscher 5e18b65a6c Lots of updates to handle file pathing more sanely. 8 years ago
Eric Holscher b24293e545 Start using pydocstyle for Python doc generation 8 years ago
Eric Holscher a21f88c806 Add comment 9 years ago
Eric Holscher b4fdac80d3 Raise exception properly on Python 3 9 years ago
Eric Holscher acef865e6f Fix up python 3 support.
This works for everything except epyparse currently.
9 years ago
Eric Holscher 6f6e09b1f6 Properly handle multiple file patterns. 9 years ago
Eric Holscher 5d861d13d8 Clean up handling of python args/params. 9 years ago
Eric Holscher 685665535f Rename files 9 years ago