Adam Turner
57a63ea603
Use more precise last-modified times for files ( #12661 )
2024-07-23 14:52:31 +01:00
danieleades
2f9a79c3b2
Disallow implicit re-export ( #12653 )
2024-07-23 02:38:45 +01:00
danieleades
58d4224227
Disallow untyped calls ( #12640 )
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com >
2024-07-23 02:22:58 +01:00
Adam Turner
217f267822
Do not overwrite user-supplied data by default when copying ( #12647 )
2024-07-22 16:00:16 +01:00
Adam Turner
9e3f4521db
Drop support for Python 3.9 ( #12633 )
2024-07-22 15:05:15 +01:00
Bénédikt Tran
6c486a575c
Fix detecting file changes for the overwritten file warning ( #12627 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com >
2024-07-20 14:31:53 +01:00
Adam Turner
2bd973e719
autodoc: Fix warnings with dataclasses in `Annotated` metadata ( #12622 )
2024-07-20 11:28:03 +01:00
Adam Turner
587da413ca
Warn when files are overwritten in the build directory ( #12612 )
2024-07-19 08:20:48 +01:00
James Addison
f081136ebd
intersphinx: Reduce log severity for ambiguity detection during inventory loading ( #12615 )
2024-07-18 13:15:20 +01:00
James Addison
cfd3645eb7
intersphinx: Don't warn about pure-duplicate ambiguous definitions when loading inventory entries ( #12586 )
2024-07-15 18:37:46 +01:00
Adam Turner
73dd9fcb9b
Restore support for `typing.ParamSpec` ( #12581 )
2024-07-15 11:00:13 +01:00
David Stansby
159c26715b
Display `typing.Annotated` metadata in the Python domain ( #11785 )
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com >
2024-07-14 00:52:55 +01:00
Adam Turner
469a809ead
Increase minimum required dependency versions ( #12556 )
2024-07-13 08:59:24 +01:00
James Addison
a6c2bdd371
Rename template files in Sphinx to use the `.jinja` extension ( #12364 )
2024-07-11 12:31:35 +01:00
James Addison
c67ef51df9
Update MyPy for types-docutils 0.21.0.20240708 ( #12522 )
2024-07-09 20:59:49 +01:00
James Addison
e63e2f3ccb
Update MyPy for types-docutils 0.21.0.20240704 ( #12511 )
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com >
2024-07-06 19:29:18 +01:00
Bénédikt Tran
3209275a4a
Support `typing_extensions.Unpack` ( #12258 )
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com >
2024-07-03 03:03:41 +01:00
Adam Turner
24a0385997
Add `allow_section_headings` to SphinxDirective parsing methods ( #12503 )
2024-07-02 23:53:58 +01:00
Adam Turner
1887df0b5c
Add reStructuredText parsing functions to `SphinxDirective` ( #12492 )
2024-07-02 22:14:19 +01:00
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