summaryrefslogtreecommitdiff
path: root/sphinx/pycode/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |
* | Merge branch 'master' into HEADTakeshi KOMIYA2018-09-221-3/+3
|\ \
| * \ Merge branch 'master' into drop-iteritemsTakeshi KOMIYA2018-09-221-1/+1
| |\ \ | | |/
| | * Fix mypy violationsTakeshi KOMIYA2018-09-181-1/+1
| | |
| * | Remove use of six.iteritems()Jon Dufresne2018-09-111-2/+2
| |/ | | | | | | In Python 3, dict.items() is always an iterator.
* | Remove unnecessary object from class definitionsJon Dufresne2018-09-111-1/+1
|/ | | | | In Python 3, all classes are new-style classes. The object in the definition is redundant and unnecessary.
* Fix #5290: autodoc: failed to analyze source code in egg packageTakeshi KOMIYA2018-09-061-1/+18
|
* Merge branch '1.7'Takeshi KOMIYA2018-03-211-20/+0
|\
| * Fix #4754: sphinx/pycode/__init__.py raises AttributeErrorTakeshi KOMIYA2018-03-191-20/+0
| |
* | Merge branch '1.7'Takeshi KOMIYA2018-03-181-3/+2
|\ \ | |/
| * Revert "Use typing.TYPE_CHECKING for typehints"Takeshi KOMIYA2018-03-131-3/+2
| | | | | | | | This reverts commit a073e17537c2aacaac305feadea58d4473ec97f4.
* | Merge branch '1.7'Takeshi KOMIYA2018-02-181-2/+3
|\ \ | |/
| * Use typing.TYPE_CHECKING for typehintsTakeshi KOMIYA2018-02-141-2/+3
| |
* | Update type annotationsTakeshi KOMIYA2018-02-041-3/+6
|/
* Merge branch 'happy_new_year' into masterTakeshi KOMIYA2018-01-011-1/+1
|\
| * A happy new year!Takeshi KOMIYA2018-01-011-1/+1
| |
* | Fix ResourceWarning on pycodeTakeshi KOMIYA2017-12-151-3/+3
| |
* | Improve exception when parsing a Python file fails.Peter Cock2017-10-131-1/+1
| |
* | Remove unused regexpTakeshi KOMIYA2017-07-261-4/+0
| |
* | pycode: Replace pgen2 by own parserTakeshi KOMIYA2017-07-261-272/+39
|/
* Merge branch 'stable'Takeshi KOMIYA2017-03-261-1/+1
|\
| * Year++Takeshi KOMIYA2017-03-261-1/+1
| |
* | Fix #3348: Show decorators in literalinclude and viewcode directivesRay Lehtiniemi2017-03-101-1/+6
| | | | | | | | Signed-off-by: Ray Lehtiniemi <rayl@mail.com>
* | Upgrade to mypy-0.5Takeshi KOMIYA2017-03-031-1/+1
| |
* | Reduce DeprecationWarnings for regexpTakeshi KOMIYA2017-02-171-1/+1
| |