summaryrefslogtreecommitdiff
path: root/sphinx/pycode
Commit message (Collapse)AuthorAgeFilesLines
* Improve sphinx.pycode.parser docstringsLouis Maddox2021-07-181-9/+9
|
* Improve sphinx.pycode.ast docstringsLouis Maddox2021-07-181-1/+1
|
* Fix #9364: autodoc: 1-element tuple on the defarg is wrongly renderedTakeshi KOMIYA2021-06-211-3/+5
|
* refactor: Add Optional to type annotationsTakeshi KOMIYA2021-05-102-17/+17
|
* refactor: Use PEP-526 based variable annotation (sphinx.pycode)Takeshi KOMIYA2021-03-273-38/+38
|
* Update type annotationsTakeshi KOMIYA2021-02-091-2/+2
|
* Merge branch '3.x'Takeshi KOMIYA2021-01-161-0/+4
|\
| * Fix #8652: autodoc: variable comments are ignored if invalid type comments foundTakeshi KOMIYA2021-01-101-0/+4
| | | | | | | | | | | | To avoid the crash of ModuleAnalyzer from invalid type comments, this start to retry parsing without type_comments=False when `ast.parse()` raises SyntaxError.
* | Merge branch '3.x'Takeshi KOMIYA2021-01-013-3/+3
|\ \ | |/
| * A happy new year!Takeshi KOMIYA2021-01-013-3/+3
| | | | | | | | | | | | | | .. note:: $ find sphinx tests LICENSE doc/conf.py -type f -exec sed -i '' -e 's/2007\-20../2007-2021/' {} \; $ git co sphinx/locale/**/*.js sphinx/templates/epub3/mimetype
* | Merge branch '3.x'Takeshi KOMIYA2020-12-141-1/+1
|\ \ | |/
| * Fix pycode becomes slowTakeshi KOMIYA2020-11-261-1/+1
| | | | | | | | On the renaming ModuleAnalyzer.parse(), I overlooked renaming a flag.
* | Fix flake8 warningsTakeshi KOMIYA2020-11-251-0/+1
| |
* | Merge branch '3.x'Takeshi KOMIYA2020-11-221-5/+12
|\ \ | |/
| * Rename ModuleAnalyzer.parse() to analyze()Takeshi KOMIYA2020-11-221-6/+12
| | | | | | | | | | The word "analyze" is much appropriate for "ModuleAnalyzer" instead of "parse".
* | Merge branch '3.x'Takeshi KOMIYA2020-11-123-5/+3
|\ \ | |/
| * Merge pull request #8408 from francoisfreitag/isortTakeshi KOMIYA2020-11-123-4/+3
| |\ | | | | | | Sort imports with isort
| | * Sort imports with isortFrançois Freitag2020-11-113-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Keep imports alphabetically sorted and their order homogeneous across Python source files. The isort project has more feature and is more active than the flake8-import-order plugin. Most issues caught were simply import ordering from the same module. Where imports were purposefully placed out of order, tag with isort:skip.
* | | Merge branch '3.x'Takeshi KOMIYA2020-11-101-6/+7
|\ \ \ | |/ /
| * | Fix #8372: autodoc: autoclass directive became slower than Sphinx-3.2Takeshi KOMIYA2020-11-081-6/+7
| |/ | | | | | | | | | | * The result of ModuleAnalyzer.parse() is not cached * autodoc tries to search overloaded constructor methods to the root class even if a definition found
* | Fix flake8 issueFrançois Freitag2020-11-071-1/+0
| |
* | Drop code for supporting py35Takeshi KOMIYA2020-11-061-7/+2
| |
* | Fix mypy violationsTakeshi KOMIYA2020-10-241-2/+2
| |
* | Merge branch '3.x'Takeshi KOMIYA2020-10-241-5/+12
|\ \ | |/
| * pycode: ast.unparse() construct number literals using source codeTakeshi KOMIYA2020-10-051-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | Developers can write number literals in several ways. For example, decimal (1234), hexadecimal (0x1234), octal decimal (0o1234) and so on. But, AST module don't mind how the numbers written in the code. As a result, ast.unparse() could not reproduce the original form of number literals. This allows to construct number literals as possible using original source code. Note: This is only available in Python 3.8+.
* | Merge branch '3.x' into masterTakeshi KOMIYA2020-10-041-2/+16
|\ \ | |/
| * Fix #7964: autodoc: Tuple in default value is wrongly renderedTakeshi KOMIYA2020-10-031-2/+16
| | | | | | | | This implements tuple literal support to sphinx.pycode.ast.unparse().
* | Merge branch '3.x'Takeshi KOMIYA2020-07-242-2/+4
|\ \ | |/
| * refactor: pycode: Use OrderedDict to store variable commentsTakeshi KOMIYA2020-07-192-2/+4
| | | | | | | | | | | | It is worthy to keep the order of analyzer.attr_docs to generate document in reproducible. So this uses OrderedDict explicitly to do that. It also helps python3.5 environment.
* | Merge branch '3.x'Takeshi KOMIYA2020-07-051-5/+5
|\ \ | |/
| * Merge pull request #7832 from cool-RR/2020-06-11-raise-fromTakeshi KOMIYA2020-06-291-5/+5
| |\ | | | | | | Fix exception causes all over the codebase
| | * Fix exception causes all over the codebaseRam Rachum2020-06-141-5/+5
| | |
* | | Merge tag 'v3.1.1'Takeshi KOMIYA2020-07-051-1/+2
|\ \ \ | |/ /
| * | FIX: Fix circular import problemEric Larson2020-06-091-1/+2
| |/
* | Merge tag 'v3.1.0'Takeshi KOMIYA2020-07-052-0/+37
|\ \ | |/
| * pycode: Detect @overload decoratorsTakeshi KOMIYA2020-05-312-0/+37
| |
* | refactor pycode: sort methodsTakeshi KOMIYA2020-05-271-7/+6
| |
* | Fix a mypy violationTakeshi KOMIYA2020-05-271-1/+1
| |
* | Merge branch '3.x'Takeshi KOMIYA2020-05-171-92/+121
|\ \ | |/
| * Merge branch '3.x' into 7497Takeshi KOMIYA2020-05-073-37/+63
| |\
| | * Add stacklevel parameter to warnings.warn() callTakeshi KOMIYA2020-05-031-2/+2
| | |
| * | refactor: Sort visitor methods of _UnparseVisitorTakeshi KOMIYA2020-05-071-62/+62
| | |
| * | Group together methods that relate to a python 3.8 deprecationEric Wieser2020-04-171-13/+15
| | | | | | | | | | | | This will make it easier to remove them all at once in future
| * | Rewrite unparse to use ast.NodeVisitorEric Wieser2020-04-171-90/+117
| | | | | | | | | | | | This should make it possible to reuse the same visitor to generate RST code.
* | | refactor: Update type annotationsTakeshi KOMIYA2020-05-022-1/+15
| | |
* | | Merge branch '3.x'Takeshi KOMIYA2020-04-302-0/+40
|\ \ \ | | |/ | |/|
| * | pycode: Detect @final decoratorsTakeshi KOMIYA2020-04-282-0/+40
| | |
* | | Remove deprecated features marked as RemovedInSphinx40WarningTakeshi KOMIYA2020-04-291-22/+5
| | |
* | | Merge branch '3.x'Takeshi KOMIYA2020-04-281-35/+21
|\ \ \ | |/ /
| * | refactor: pycode: visit_ImportTakeshi KOMIYA2020-04-261-8/+2
| | |