Commit Graph

15545 Commits

Author SHA1 Message Date
Keewis
26855f92d8 also test invalid string tokens 2020-07-16 00:26:10 +02:00
Keewis
1140f7b26d also check type specs without actual types 2020-07-16 00:26:10 +02:00
Keewis
d177e58999 reimplement the value set combination function using collections.deque 2020-07-16 00:26:10 +02:00
Keewis
866c822e11 move the warnings to token_type 2020-07-16 00:26:10 +02:00
Keewis
37e02512fc make invalid value sets a literal to avoid further warnings 2020-07-16 00:26:10 +02:00
Keewis
b0da0e5aef remove the default for the default translation 2020-07-16 00:26:10 +02:00
Keewis
af6071e571 expect a warning instead of an error 2020-07-16 00:26:10 +02:00
Keewis
dc8c7ac9f8 update the integration test 2020-07-16 00:26:10 +02:00
Keewis
20e36007fe treat value sets as literals 2020-07-16 00:26:10 +02:00
Keewis
e3b7e16b0a move the regexes to top-level 2020-07-16 00:26:10 +02:00
Keewis
9bfbe252f1 set a default so translations don't to be specified 2020-07-16 00:26:09 +02:00
Keewis
9835f1fff8 test that braces and quotes in strings work 2020-07-16 00:26:09 +02:00
Keewis
eab49125e9 update the splitting regexp to handle braces in strings and escaped quotes 2020-07-16 00:26:09 +02:00
Keewis
ce60b555ee properly use sphinx's logger 2020-07-16 00:26:08 +02:00
Keewis
b846db7e53 emit a warning instead of raising an error 2020-07-16 00:25:19 +02:00
Keewis
27733d6f61 replace the custom role with markup 2020-07-16 00:24:27 +02:00
Keewis
e1d7edac25 rename the configuration option 2020-07-16 00:24:27 +02:00
Keewis
ad89b1f76a replace the hard-coded mapping of translations with a config option 2020-07-16 00:22:56 +02:00
Keewis
2882c3465a fix the expected parameters section to match the current status 2020-07-16 00:22:56 +02:00
Keewis
fc70205fb4 get the type converter function to work, verified by new tests 2020-07-16 00:22:56 +02:00
Keewis
25937f745a move tokenize_type_spec to its own function and add tests for it 2020-07-16 00:22:56 +02:00
Keewis
8ab210f1b0 don't use the obj role if it is not necessary 2020-07-16 00:22:56 +02:00
Keewis
ace933107a move the numpy type spec parsing function out of NumpyDocstring 2020-07-16 00:22:55 +02:00
Keewis
e9822139ee more flake8 2020-07-16 00:22:55 +02:00
Keewis
70363c3e2f flake8 2020-07-16 00:22:35 +02:00
Keewis
bd33b61d64 update the translations 2020-07-16 00:21:59 +02:00
Keewis
bdea34e54e don't treat instance as special 2020-07-16 00:21:59 +02:00
Keewis
bafb24dd93 actually apply the type conversion 2020-07-16 00:21:59 +02:00
Keewis
bc25a3d136 try to mark literals as such 2020-07-16 00:21:55 +02:00
Keewis
b1f43d2fff use textwrap for a normal indentation depth 2020-07-16 00:19:58 +02:00
Keewis
a7bbedfbb7 add a test for the parameter type conversions 2020-07-16 00:19:22 +02:00
Takeshi KOMIYA
e65021fb9b
Merge pull request #7954 from tk0miya/2076_exclude_members
Autodoc: Allow overriding of exclude-members in skip-member function
2020-07-16 02:27:33 +09:00
Takeshi KOMIYA
ce62756cfc
Merge pull request #7951 from tk0miya/7745_docname_containing_spaces
Fix #7745: html: inventory is broken if the docname contains a space
2020-07-16 02:27:03 +09:00
Takeshi KOMIYA
6c8d100f56
Merge pull request #7959 from fritzr/3.x
Fix typo in prepare_docstring() warning
2020-07-16 00:58:46 +09:00
Fritz Reese
1fe121e078
Fix typo in prepare_docstring() warning 2020-07-14 15:51:29 -04:00
Jakob Lykke Andersen
03e1070888
Merge pull request #7905 from jakobandersen/c_compat
C, add compatibility flag for parsing some pre-v3 input
2020-07-14 13:23:32 +02:00
Jakob Lykke Andersen
18b00d8cff Add docs and CHANGES for C changes 2020-07-14 11:48:58 +02:00
Jakob Lykke Andersen
91f4af5d42 C, add c_warn_on_allowed_pre_v3 config to disable deprecation warnings 2020-07-14 11:28:38 +02:00
Jakob Lykke Andersen
83e6165852 C, add compatibility flag for pre-v3 type roles 2020-07-14 11:23:53 +02:00
Jakob Lykke Andersen
f0888b044a C, add compatibility flag for pre-v3 type directives 2020-07-14 11:22:50 +02:00
Takeshi KOMIYA
e1a19d8b83
Merge pull request #7950 from SebastianJL/patch-1
Update description of autosummary_generate_overwrite
2020-07-14 03:13:52 +09:00
Takeshi KOMIYA
dde3d61cc0 Update CHANGES for PR #2076 2020-07-14 03:02:14 +09:00
Jelte Fennema
09576ad064 Autodoc: Allow overriding of exclude-members in skip-member function 2020-07-13 22:10:20 +09:00
Takeshi KOMIYA
83eba7e269 Fix #7745: html: inventory is broken if the docname contains a space
The format of inventory file expects that URIs do not contain spaces.
Not to generate a URL containing spaces, HTMLBuilder.get_target_uri()
should do URL-escaping to the docname.
2020-07-13 21:57:10 +09:00
Johannes Lade
91285f39a6
Update description of autosummary_generate_overwrite
The old description was confusing. Maybe it's just me not being a native speaker, but I think it was wrongly worded.
2020-07-13 14:03:06 +02:00
Takeshi KOMIYA
293fa1e5fc Update CHANGES for PR #7940 2020-07-12 22:17:28 +09:00
Takeshi KOMIYA
d45d02ffda
Merge pull request #7940 from AleksaC/fix_double_trailing_newline_apidoc
Fix double trailing newline apidoc
2020-07-12 22:15:55 +09:00
Takeshi KOMIYA
be68885bc5
Merge pull request #7945 from tkoyama010/patch-1
📛 CodeTriage
2020-07-12 19:22:01 +09:00
Takeshi KOMIYA
1960833d99
Merge pull request #7941 from tk0miya/7901_resolve_types_for_overloaded_funcs
Fix #7901: autodoc: annotations for overloaded functions are not resolved
2020-07-12 14:31:17 +09:00
Takeshi KOMIYA
5d8b94cd9e
Merge branch '3.x' into 7901_resolve_types_for_overloaded_funcs 2020-07-12 14:15:36 +09:00