summaryrefslogtreecommitdiff
path: root/sphinx/pycode
Commit message (Collapse)AuthorAgeFilesLines
...
| * 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
| | |
| * | pycode: Fix wrong type annotationTakeshi KOMIYA2020-04-261-1/+1
| | |
| * | refactor: pycode: Add VariableCommentPicker.get_qualname_for()Takeshi KOMIYA2020-04-261-26/+18
| | |
* | | Merge branch '3.x'Takeshi KOMIYA2020-04-271-3/+3
|\ \ \ | |/ /
| * | refactor: Add Optional to type annotationsTakeshi KOMIYA2020-04-191-3/+3
| |/
* | Merge branch '3.x'Takeshi KOMIYA2020-04-181-22/+15
|\ \ | |/
| * Deduplicate some code in `pycode.ast`Eric Wieser2020-04-161-22/+15
| |
* | Merge branch '3.x'Takeshi KOMIYA2020-04-131-1/+4
|\ \ | |/
| * Fix #7461: autodoc: empty tuple in type annotation is not shown correctlyTakeshi KOMIYA2020-04-121-1/+4
| |
* | Merge branch '3.x'Takeshi KOMIYA2020-03-211-1/+33
|\ \ | |/
| * Fix #7304: pycode: Support operators (BinOp, BoolOp and UnaryOp)Takeshi KOMIYA2020-03-141-1/+33
| |
* | Deprecate codes for python 3.5Takeshi KOMIYA2020-03-071-1/+1
|/
* py domain: Support lambda functions in function signatureTakeshi KOMIYA2020-02-161-1/+67
|
* Merge branch '2.0'Takeshi KOMIYA2020-02-093-5/+34
|\
| * autodoc: Support type_comment styled type annotation for variablesTakeshi KOMIYA2020-02-032-3/+7
| |
| * pycode: Support type annotations for variablesTakeshi KOMIYA2020-02-032-5/+30
| |
* | Merge branch '2.0'Takeshi KOMIYA2020-01-191-0/+80
|\ \ | |/