Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | refactor: Use PEP-526 based variable annotation (sphinx.pycode) | Takeshi KOMIYA | 2021-03-27 | 1 | -5/+5 |
| | |||||
* | Update type annotations | Takeshi KOMIYA | 2021-02-09 | 1 | -2/+2 |
| | |||||
* | Merge branch '3.x' | Takeshi KOMIYA | 2021-01-16 | 1 | -0/+4 |
|\ | |||||
| * | Fix #8652: autodoc: variable comments are ignored if invalid type comments found | Takeshi KOMIYA | 2021-01-10 | 1 | -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 KOMIYA | 2021-01-01 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | A happy new year! | Takeshi KOMIYA | 2021-01-01 | 1 | -1/+1 |
| | | | | | | | | | | | | | | .. 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 KOMIYA | 2020-11-12 | 1 | -2/+1 |
|\ \ | |/ | |||||
| * | Sort imports with isort | François Freitag | 2020-11-11 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | | Fix mypy violations | Takeshi KOMIYA | 2020-10-24 | 1 | -2/+2 |
| | | |||||
* | | Merge branch '3.x' | Takeshi KOMIYA | 2020-10-24 | 1 | -5/+12 |
|\ \ | |/ | |||||
| * | pycode: ast.unparse() construct number literals using source code | Takeshi KOMIYA | 2020-10-05 | 1 | -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 master | Takeshi KOMIYA | 2020-10-04 | 1 | -2/+16 |
|\ \ | |/ | |||||
| * | Fix #7964: autodoc: Tuple in default value is wrongly rendered | Takeshi KOMIYA | 2020-10-03 | 1 | -2/+16 |
| | | | | | | | | This implements tuple literal support to sphinx.pycode.ast.unparse(). | ||||
* | | refactor pycode: sort methods | Takeshi KOMIYA | 2020-05-27 | 1 | -7/+6 |
| | | |||||
* | | Fix a mypy violation | Takeshi KOMIYA | 2020-05-27 | 1 | -1/+1 |
| | | |||||
* | | Merge branch '3.x' | Takeshi KOMIYA | 2020-05-17 | 1 | -92/+121 |
|\ \ | |/ | |||||
| * | Merge branch '3.x' into 7497 | Takeshi KOMIYA | 2020-05-07 | 1 | -1/+1 |
| |\ | |||||
| * | | refactor: Sort visitor methods of _UnparseVisitor | Takeshi KOMIYA | 2020-05-07 | 1 | -62/+62 |
| | | | |||||
| * | | Group together methods that relate to a python 3.8 deprecation | Eric Wieser | 2020-04-17 | 1 | -13/+15 |
| | | | | | | | | | | | | This will make it easier to remove them all at once in future | ||||
| * | | Rewrite unparse to use ast.NodeVisitor | Eric Wieser | 2020-04-17 | 1 | -90/+117 |
| | | | | | | | | | | | | This should make it possible to reuse the same visitor to generate RST code. | ||||
* | | | refactor: Update type annotations | Takeshi KOMIYA | 2020-05-02 | 1 | -0/+11 |
| |/ |/| | |||||
* | | refactor: Add Optional to type annotations | Takeshi KOMIYA | 2020-04-19 | 1 | -3/+3 |
|/ | |||||
* | Deduplicate some code in `pycode.ast` | Eric Wieser | 2020-04-16 | 1 | -22/+15 |
| | |||||
* | Fix #7461: autodoc: empty tuple in type annotation is not shown correctly | Takeshi KOMIYA | 2020-04-12 | 1 | -1/+4 |
| | |||||
* | Fix #7304: pycode: Support operators (BinOp, BoolOp and UnaryOp) | Takeshi KOMIYA | 2020-03-14 | 1 | -1/+33 |
| | |||||
* | py domain: Support lambda functions in function signature | Takeshi KOMIYA | 2020-02-16 | 1 | -1/+67 |
| | |||||
* | autodoc: Support type_comment styled type annotation for variables | Takeshi KOMIYA | 2020-02-03 | 1 | -0/+2 |
| | |||||
* | Add sphinx.pycode.ast.parse() and unparse() | Takeshi KOMIYA | 2020-01-13 | 1 | -0/+80 |