James Addison
799ae16a01
Intersphinx: log warnings for ambiguous target resolutions. ( #12329 )
...
This commit adds detection of ambiguous ``std:label`` and ``std:term`` references (due to case-insensitivity)
during loading and resolution of Intersphinx targets,
and emits a warning if found.
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com >
Co-authored-by: Chris Sewell <chrisj_sewell@hotmail.com >
2024-06-17 12:42:22 +02:00
Adam Turner
938d3732f8
Collapse unions of `Literal types in stringify_annotation` ( #12325 )
2024-04-25 16:07:10 +01:00
Adam Turner
50895827ba
Mark `test_restify_Annotated` as an expected failure
2024-04-25 03:07:48 +01:00
Adam Turner
6b70620993
Add a test for `restify(Annotated[...])`
2024-04-24 23:16:22 +01:00
James Addison
0806a00f05
Support `.jinja` for theme static templates ( #11916 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com >
2024-04-23 10:40:24 +01:00
Adam Turner
5a55856dd1
Properly format `collections.abc.Callable` ( #12314 )
2024-04-23 08:01:09 +00:00
Adam Turner
2361db5748
Enable more Ruff checks
2024-04-22 23:09:01 +01:00
Adam Turner
09d05a0858
Don't render types with `Optional[...]`
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com >
2024-04-15 01:35:47 +01:00
Adam Turner
3421e5382a
Narrow `Generator[T, None, None] types to Iterator[T]` ( #12241 )
2024-04-09 03:26:44 +01:00
Bénédikt Tran
f7a1397d6c
[console] enhance detection and elimination of known ANSI escape sequences ( #12216 )
...
This PR improves the logic for detecting and eliminating ANSI color codes and other escape sequences introduced by Sphinx. ANSI escape sequences that are not natively known to Sphinx are not eliminated (e.g., VT100-specific functions).
2024-04-04 12:35:38 +02:00
Bénédikt Tran
885818bb7f
[tests] move utilities and static data into dedicated modules and remove `html5lib` ( #12173 )
...
Since #12168 , HTML files are now XML compliant, hence ``html5lib`` is no more needed as a testing dependencies.
2024-03-25 11:03:44 +01:00
Bénédikt Tran
f24eef7b6b
[cleanup] deprecate `sphinx.testing.util.strip_escseq in favor of sphinx.util.console.strip_colors` ( #12186 )
2024-03-24 00:43:54 +01:00
Chris Sewell
b0f096f440
✨ Add show_warning_types configuration variable ( #12131 )
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com >
2024-03-19 10:22:28 +01:00
danieleades
d74a450213
[deps] bump ruff version ( #12065 )
...
Co-authored-by: daniel.eades <daniel.eades@seebyte.com >
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com >
2024-03-14 10:42:55 +01:00
Bénédikt Tran
d8c301482d
[hotfix] fix a warning in #12036 ( #12043 )
2024-03-03 09:29:47 +00:00
Ned Batchelder
574519900e
[test] force rendering of ANSI colors for non-tty objects ( #12036 )
2024-03-02 17:36:41 +01:00
Michael Goerz
265ffeedbd
[intersphinx] allow case-insensitive match of label-refs through intersphinx ( #12033 )
2024-03-02 12:39:51 +01:00
danieleades
f9c8943889
Use `# NoQA` consistently ( #11903 )
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com >
2024-01-21 20:20:58 +00:00
Adam Turner
462404cb25
Organise tests into directories
2024-01-17 03:56:35 +00:00