Commit Graph

16245 Commits

Author SHA1 Message Date
Takeshi KOMIYA
b718aef7d8 Do isort 2020-11-12 02:52:50 +09:00
Takeshi KOMIYA
279e547860 Merge branch '3.x' 2020-11-12 02:50:43 +09:00
Takeshi KOMIYA
64fb1e5624
Merge pull request #8411 from francoisfreitag/devmode
Run tests with Python Development mode
2020-11-12 02:20:43 +09:00
Takeshi KOMIYA
386929ec0f
Merge pull request #8409 from francoisfreitag/linkcheck-tests
linkcheck: Remove unused arguments from tests
2020-11-12 02:17:52 +09:00
Takeshi KOMIYA
68cc0f7e94
Merge pull request #8408 from francoisfreitag/isort
Sort imports with isort
2020-11-12 02:05:13 +09:00
François Freitag
22a4ed531c
Run tests with Python Development mode
Helps catching more issues with the test suite.
https://docs.python.org/3/library/devmode.html#devmode
2020-11-11 14:20:18 +01:00
François Freitag
c90eef1f67
linkcheck: Remove unused arguments from tests 2020-11-11 13:48:45 +01:00
François Freitag
0949735210
Sort imports with isort
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.
2020-11-11 13:19:05 +01:00
Takeshi KOMIYA
859b5fcea7
Merge pull request #8402 from tk0miya/test_with_ubuntu18.04
Do test with Ubuntu 18.04
2020-11-10 23:42:53 +09:00
Takeshi KOMIYA
5533724d74 Do test with Ubuntu 18.04
Sphinx-4.0 will drop support for Ubuntu 16.04.  So CI Platform should be
also updated to Ubuntu 18.04.
2020-11-10 23:32:57 +09:00
Takeshi KOMIYA
1254b80113 Merge branch '3.x' 2020-11-10 23:21:51 +09:00
Takeshi KOMIYA
229e11c488
Merge pull request #8376 from tk0miya/test_with_py310
Test with py310
2020-11-10 23:20:08 +09:00
Takeshi KOMIYA
1b9099f339 test: Adjust type annotataions in python 3.10 2020-11-10 22:33:03 +09:00
Takeshi KOMIYA
a3c8768afd Do test with py310-dev again 2020-11-10 22:33:03 +09:00
Takeshi KOMIYA
4664814ed2
Merge pull request #8397 from tk0miya/apply_get_type_hints
autodoc: Add Optional[t] to annotation of function and method
2020-11-10 22:31:38 +09:00
Takeshi KOMIYA
9154bc5456 Merge branch '3.3.x' into 3.x 2020-11-10 20:40:55 +09:00
Takeshi KOMIYA
e2836c4361 Update CHANGES for PR #8231 2020-11-10 20:40:44 +09:00
Takeshi KOMIYA
6d1cafe7bd autodoc: Add Optional[t] to annotation of function and method
As typing.get_type_hints() doing, this adds Optional[t] to type
annotations if a default value equal to None is set.

Note: this is default behavior of inspect.signature() since Python 3.10.
2020-11-10 02:41:58 +09:00
Takeshi KOMIYA
e2c969c495
Merge pull request #8392 from tk0miya/add_Documenter.config
refactor: Add `Documenter.config` as a shortcut to access the config object
2020-11-10 00:51:56 +09:00
Takeshi KOMIYA
51da043791 refactor: Add `Documenter.config` as a shortcut to access the config object 2020-11-10 00:43:23 +09:00
Takeshi KOMIYA
90f6fd90e0
Merge pull request #8390 from sphinx-doc/7727_autosummary_PycodeError
Fix #7727: autosummary raises PycodeError for namespace python package
2020-11-10 00:42:18 +09:00
Takeshi KOMIYA
b4fcd6b9a5
Merge pull request #8394 from francoisfreitag/real-inv
Rewrite test_inspect_main_url to avoid mocking
2020-11-10 00:41:55 +09:00
Takeshi KOMIYA
7299d589c6
Merge pull request #8393 from tk0miya/drop_code_for_py35
Drop code for py35
2020-11-10 00:32:16 +09:00
Takeshi KOMIYA
ed5af2461f
Merge branch '3.3.x' into 7727_autosummary_PycodeError 2020-11-10 00:31:44 +09:00
Takeshi KOMIYA
0be0cd606c
Merge pull request #8387 from tk0miya/8372_slow_autoclass
Fix #8372: autodoc: autoclass directive became slower than Sphinx-3.2
2020-11-10 00:30:09 +09:00
François Freitag
0178437f3c
Rewrite test_inspect_main_url to avoid mocking
Makes the test more realistic by issuing an HTTP request.
Reduces coupling between test and the code under test.

The `http_server` helper was factored out into a new tests.utils module.
2020-11-08 22:30:49 +01:00
Takeshi KOMIYA
4ccbd083c6 Drop code for py35 2020-11-09 02:51:59 +09:00
Takeshi KOMIYA
bbcd471557 Merge branch '3.x' 2020-11-09 02:50:08 +09:00
Takeshi KOMIYA
7db3633778
Merge pull request #8231 from tk0miya/8219_params_for_base_generic_class_is_not_shown
Fix #8219: autodoc: Parameters for generic base class are not shown
2020-11-09 02:48:55 +09:00
Takeshi KOMIYA
e2bf9166da Fix #8219: autodoc: Parameters for generic base class are not shown 2020-11-09 02:34:49 +09:00
Takeshi KOMIYA
5337e3848c
Merge pull request #8125 from tk0miya/8119_control_appearance_of_member_not_in_module.__all__
Close #8119: autodoc: Control visibility of module member not in __all__
2020-11-09 02:14:34 +09:00
Takeshi KOMIYA
787444ff18 Fix #7727: autosummary raises PycodeError for namespace python package 2020-11-09 02:06:14 +09:00
Takeshi KOMIYA
e3eec9f0e1 Fix #8372: autodoc: autoclass directive became slower than Sphinx-3.2
* The result of ModuleAnalyzer.parse() is not cached
* autodoc tries to search overloaded constructor methods to the root
  class even if a definition found
2020-11-08 23:23:32 +09:00
Takeshi KOMIYA
896ecc34d7
Merge branch '3.x' into 8119_control_appearance_of_member_not_in_module.__all__ 2020-11-08 17:40:13 +09:00
Takeshi KOMIYA
a163bbe870
Merge pull request #8385 from tk0miya/dont_use_object_to_annotation
test: do not use "object" for the type annotation
2020-11-08 13:15:40 +09:00
Takeshi KOMIYA
e31189d970 test: do not use "object" for the type annotation
Usually we use "Any" type for the type annotation which takes any kinds
of types, instead of "object" class.  So this replaces "object" to "Any"
in our example.
2020-11-08 12:57:54 +09:00
Takeshi KOMIYA
3a37919638
Merge pull request #8362 from tk0miya/8105_incorrect_class_constructor
Fix #8105: autodoc: the signature of decorated class is incorrect
2020-11-08 12:53:22 +09:00
Takeshi KOMIYA
a3145beddf
Merge pull request #8378 from tk0miya/drop_py35_support
Drop code for supporting py35
2020-11-08 12:36:16 +09:00
Takeshi KOMIYA
1955a08378
Merge branch '3.x' into 8105_incorrect_class_constructor 2020-11-08 12:34:09 +09:00
Takeshi KOMIYA
8981e84779
Merge pull request #8361 from sphinx-doc/4606_incorrect_location_of_docstring
Fix #4606: autodoc: the location of the warning is incorrect for inherited method
2020-11-08 12:33:30 +09:00
Takeshi KOMIYA
bca35cde15
Merge pull request #8382 from francoisfreitag/34
Drop Python 3.4 compatibility code
2020-11-08 12:32:51 +09:00
Takeshi KOMIYA
0914c9266a
Merge pull request #5 from francoisfreitag/drop-py35
Remove additional mentions of Python 3.5
2020-11-08 12:30:00 +09:00
François Freitag
342c808af3
Fix flake8 issue 2020-11-07 13:32:37 +01:00
François Freitag
b1caecda39
Remove additional mentions of Python 3.5 2020-11-07 11:56:20 +01:00
François Freitag
fa8bec76e7
Drop Python 3.4 compatibility code
Python 3.4 support was dropped in Sphinx 2.0.
2020-11-07 11:21:34 +01:00
Jakob Lykke Andersen
1193d83166 Update CHANGES 2020-11-07 10:40:30 +01:00
Fabio Utzig
5488bda082 domains: c: fix use of unitialized variable
_fill_empty was not updating the state with the value of line, so in
recursive calls it would fail the assert checking for its own
initialization.

Signed-off-by: Fabio Utzig <fabio.utzig@nordicsemi.no>
2020-11-07 10:39:25 +01:00
Takeshi KOMIYA
6d5e43a0ff Drop code for supporting py35 2020-11-06 01:36:04 +09:00
Takeshi KOMIYA
a38ba8670a
Merge pull request #8377 from tk0miya/8375_fix_link
Fix #8375: URL of transifex project page
2020-11-06 00:04:16 +09:00
Takeshi KOMIYA
cad02e62e6 Fix #8375: URL of transifex project page 2020-11-05 23:52:59 +09:00