Takeshi KOMIYA
21a3bd4127
refactor: Fix flake8 violations under tests/ directory
2020-11-15 17:15:40 +09: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
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
754d04f80d
Merge branch '2.4.x' into 3.x
2020-02-22 19:22:31 +09:00
Takeshi KOMIYA
2db006a0af
Fix #7183 : intersphinx: `:attr:
` reference to property is broken
2020-02-22 01:28:13 +09:00
Takeshi KOMIYA
4dd8b1022f
test: Use read_text() and read_bytes()
2020-02-01 11:58:51 +09:00
Takeshi KOMIYA
eaf495c3c4
A happy new year!
2020-01-01 14:27:43 +09:00
Takeshi KOMIYA
c83f2a0272
Fix #6140 : Use unittest.mock instead of mock
2019-03-08 00:27:45 +09:00
Takeshi KOMIYA
76e9f57c2e
Merge branch '1.8'
2019-01-02 16:16:25 +09:00
Takeshi KOMIYA
1b1ebd2c75
A happy new year!
2019-01-02 16:00:30 +09:00
Takeshi KOMIYA
556f599e6e
intersphinx: Normalize mapping on config-inited
2018-12-17 22:03:47 +09:00
Jon Dufresne
bade33c7e4
Remove unnecessary encoding cookie from Python source files
...
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.
2018-12-16 12:22:12 -08:00
Jon Dufresne
5bf25eb445
Avoid respecifying default encoding for .encode()/.decode() calls
...
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.
2018-12-15 17:19:56 -08:00
Takeshi KOMIYA
cd08a6503c
Fix #4664 : Reading objects.inv fails again
2018-02-23 10:44:11 +09:00
Takeshi KOMIYA
f7027049b1
Fix flake8 violations
2018-02-19 23:20:56 +09:00
Takeshi KOMIYA
39d4584248
Merge branch 'stable' into 1.7-release
2018-02-03 02:14:06 +09:00
Takeshi KOMIYA
43ee8d194d
intersphinx: Add testcase for inventory fallbacks
2018-01-31 01:22:33 +09:00
Takeshi KOMIYA
aa47e9decc
Fix #4209 : intersphinx: In link title, "v" should be optional if target has no version
2018-01-30 00:14:53 +09:00
Takeshi KOMIYA
4d040abafb
Fix #4079 : Add notranslate class to let Google Translate know they are not translatable
2018-01-13 20:25:49 +09:00
Takeshi KOMIYA
e18c49ec59
Merge commit '4277eb13315d5649401190df86874b3832ddfa3e'
2018-01-07 01:13:32 +09:00
Takeshi KOMIYA
850e9a9c5c
Fix links to external option docs with intersphinx (refs: #3769 )
2018-01-02 01:01:29 +09:00
Takeshi KOMIYA
f1f6ca8cc9
Merge branch 'happy_new_year' into master
2018-01-01 01:09:17 +09:00
Takeshi KOMIYA
2426cedb8b
A happy new year!
2018-01-01 01:06:58 +09:00
Takeshi KOMIYA
a9efb2517a
Fix flake8 violations
2017-12-23 21:21:21 +09:00
Andy Neebel
3a0c050af0
Some cleanup to avoid using the std:: namespace
2017-09-28 13:43:46 -05:00
Jakob Lykke Andersen
447c54ae92
C++, adapt sphinx-doc/sphinx#3894 after merge to master
...
Fixes sphinx-doc/sphinx#4082
2017-09-28 20:10:07 +02:00
Takeshi KOMIYA
617bb43cae
Comment out broken test cases temporarily
2017-09-24 23:46:31 +09:00
Andy Neebel
5ebfd51672
Improve cpp intersphinx support
...
Now types called out in function declarations will be searched for in
the intersphinx inventory as well
2017-06-26 14:21:52 -05:00
Andy Neebel
f68c108f10
Mark tests as xfail/skip to allow successful run
2017-06-14 13:27:31 -05:00
Takeshi KOMIYA
44b6044d4b
Implement get_full_qualified_name() to CPPDomain (refs: #3630 )
2017-04-23 16:31:33 +09:00
Takeshi KOMIYA
96fa6d2972
Implement get_full_qualified_name() to JavascriptDomain (refs: #3630 )
2017-04-23 16:31:33 +09:00
Takeshi KOMIYA
db377ceb55
Implement get_full_qualified_name() to StandardDomain (refs: #3630 )
2017-04-23 16:31:33 +09:00
Takeshi KOMIYA
b39b0191a7
Fix #3351 : intersphinx does not refers context
2017-04-16 18:25:21 +09:00
Takeshi KOMIYA
8f9dd64992
Merge branch 'stable'
2017-03-26 11:52:15 +09:00
Takeshi KOMIYA
c57e47e042
Year++
2017-03-26 11:49:34 +09:00
Takeshi KOMIYA
6376e6053c
Merge branch 'stable'
2017-03-22 09:49:48 +09:00
David Baumgold
3317796739
Fix intersphinx debug tool
...
and add automated tests
2017-03-21 15:00:32 -04:00
Takeshi KOMIYA
29254c15f1
Move InventoryFile class to sphinx.util.inventory
2017-03-02 22:51:42 +09:00
Takeshi KOMIYA
69bb12c1e1
intersphinx: Add InventoryFile utility
2017-03-02 17:26:07 +09:00
Takeshi KOMIYA
00e32eeeff
intersphinx: Add ZlibReader utility
2017-03-02 16:45:31 +09:00
Takeshi KOMIYA
12d6398739
Move doc reference to under standard domain
2017-01-29 19:50:14 +09:00
Takeshi KOMIYA
cf2061dfad
Fix flake8 violations
2017-01-26 01:13:17 +09:00
shimizukawa
baaef9146d
pytest: remove deprecated with_app decorator functions
2017-01-06 01:14:47 +09:00
shimizukawa
d0a33dd785
pytest: remove deprecated with_tempdir decorator
2017-01-06 00:26:01 +09:00
shimizukawa
5b7d237db3
pytest migration
2017-01-04 00:59:30 +09:00
shimizukawa
487f3db5f6
To simplify, sphinx uses external mock package even if unittest.mock exists.
2016-10-15 16:22:27 +09:00
Takeshi KOMIYA
c832d36d19
Merge pull request #2056 from erosennin/intersphinx-fix-relative-path
...
Fix relative paths in intersphinx links
2016-09-14 10:54:18 +09:00
Takeshi KOMIYA
691fd15839
Fix broken testcase
2016-09-01 23:30:04 +09:00
Takeshi KOMIYA
e7ff996d13
intersphinx: _strip_basic_auth() only removes credentials from URL
2016-08-22 20:58:46 +09:00
Takeshi KOMIYA
35232a3dd6
intersphinx: Use requests package
2016-08-22 20:58:45 +09:00