summaryrefslogtreecommitdiff
path: root/sphinx/pycode/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* refactor: Add Optional to type annotationsTakeshi KOMIYA2021-05-101-7/+7
|
* refactor: Use PEP-526 based variable annotation (sphinx.pycode)Takeshi KOMIYA2021-03-271-7/+7
|
* Merge branch '3.x'Takeshi KOMIYA2021-01-011-1/+1
|\
| * A happy new year!Takeshi KOMIYA2021-01-011-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 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-121-1/+1
|\ \ | |/
| * Merge pull request #8408 from francoisfreitag/isortTakeshi KOMIYA2020-11-121-1/+1
| |\ | | | | | | Sort imports with isort
| | * Sort imports with isortFrançois Freitag2020-11-111-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.
* | | 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
* | Merge branch '3.x'Takeshi KOMIYA2020-07-241-1/+2
|\ \ | |/
| * refactor: pycode: Use OrderedDict to store variable commentsTakeshi KOMIYA2020-07-191-1/+2
| | | | | | | | | | | | 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
|\ \ | |/
| * Fix exception causes all over the codebaseRam Rachum2020-06-141-5/+5
| |
* | Merge tag 'v3.1.0'Takeshi KOMIYA2020-07-051-0/+3
|\ \ | |/
| * pycode: Detect @overload decoratorsTakeshi KOMIYA2020-05-311-0/+3
| |
| * Add stacklevel parameter to warnings.warn() callTakeshi KOMIYA2020-05-031-2/+2
| |
* | Merge branch '3.x'Takeshi KOMIYA2020-04-301-0/+2
|\ \ | |/
| * pycode: Detect @final decoratorsTakeshi KOMIYA2020-04-281-0/+2
| |
* | Remove deprecated features marked as RemovedInSphinx40WarningTakeshi KOMIYA2020-04-291-22/+5
|/
* pycode: Support type annotations for variablesTakeshi KOMIYA2020-02-031-3/+5
|
* A happy new year!Takeshi KOMIYA2020-01-011-1/+1
|
* Deprecate sphinx.util:detect_encoding() and ModuleAnalyzer.encodingTakeshi KOMIYA2019-12-271-7/+17
|
* Fix flake8 violationsTakeshi KOMIYA2019-12-271-2/+2
|
* refactor: pycode: do not call endswith twiceTakeshi KOMIYA2019-12-271-3/+2
|
* Fix flake8 violationsTakeshi KOMIYA2019-12-271-6/+6
|
* Old get_module_source API restored, new version moved to ModuleAnalyzer ↵hkm2019-12-251-2/+52
| | | | class, tests updated
* Added test case for non ASCII & non UTF8 encoding Windows-1251 in ↵hkm2019-12-151-1/+1
| | | | test_pycode section
* lost reference to source file name fixed. Test suit updatedhkm2019-12-151-4/+4
|
* Migrate to py3 style type annotation: sphinx.pycodeTakeshi KOMIYA2019-07-061-20/+10
|
* Fix broken code (my wrong...)Takeshi KOMIYA2019-01-131-5/+0
|
* Merge branch '1.8'Takeshi KOMIYA2019-01-131-1/+8
|\
| * Fix pycode could not handle egg files on windowsTakeshi KOMIYA2019-01-121-2/+4
| |
* | Merge branch '1.8'Takeshi KOMIYA2019-01-021-1/+1
|\ \ | |/
| * A happy new year!Takeshi KOMIYA2019-01-021-1/+1
| |
* | Remove unnecessary encoding cookie from Python source filesJon Dufresne2018-12-161-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In Python 3, the default encoding of source files is utf-8. The encoding cookie is now unnecessary and redundant so remove it. For more details, see the docs: https://docs.python.org/3/howto/unicode.html#the-string-type > The default encoding for Python source code is UTF-8, so you can > simply include a Unicode character in a string literal ... Includes a fix for the flake8 header checks to stop expecting an encoding cookie.
* | Merge pull request #5801 from jdufresne/modanalyzer-bytesTakeshi KOMIYA2018-12-161-3/+1
|\ \ | | | | | | Remove unnecessary bytes type check in ModuleAnalyzer.for_string()
| * | Remove unnecessary bytes type check in ModuleAnalyzer.for_string()Jon Dufresne2018-12-151-3/+1
| | | | | | | | | | | | | | | All uses always pass a str, never a bytes. Per the type signature, only str types are allowed.
* | | Avoid respecifying default encoding for .encode()/.decode() callsJon Dufresne2018-12-151-1/+1
|/ / | | | | | | | | | | | | | | | | | | | | In Python 3, both .encode() and .decode() default the encoding to 'utf-8'. See the docs: https://docs.python.org/3/library/stdtypes.html#str.encode https://docs.python.org/3/library/stdtypes.html#bytes.decode Simplify and shorten the code by using the default instead of respecifying it.
* | Replace all "unicode" type by "str"Takeshi KOMIYA2018-12-151-11/+10
| |
* | Remove print_function featureTakeshi KOMIYA2018-12-151-1/+0
| |
* | refactor: Replace six.StringIO by io.StringIOTakeshi KOMIYA2018-12-151-3/+1
| |
* | Add sphinx.util.typing:unicode to help mypy-3 migrationTakeshi KOMIYA2018-11-241-0/+1
| |
* | Merge branch '1.8'Takeshi KOMIYA2018-10-161-3/+3
|\ \ | |/
| * Fix mypy violationsTakeshi KOMIYA2018-10-161-3/+3
| |
* | Replace all six.BytesIO with io.BytesIOJon Dufresne2018-09-231-1/+2
| |