Commit Graph

21068 Commits

Author SHA1 Message Date
Adam Turner
c8c7fee4e5 Use `types.NoneType` (#12659) 2024-07-23 01:31:53 +01:00
Adam Turner
3b009cd627 Mark type aliases with `TypeAlias` (#12658) 2024-07-23 01:21:29 +01:00
Bénédikt Tran
61daf1c27c intersphinx: Fix cache handling (#12087)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
Co-authored-by: James Addison <55152140+jayaddison@users.noreply.github.com>
2024-07-22 23:09:11 +01:00
dependabot[bot]
f90b506a9f Bump mypy to 1.11.0 (#12642) 2024-07-22 17:29:09 +01:00
Adam Turner
97df13dc68 Remove `sphinx.util.inspect.isNewType` (#12646) 2024-07-22 17:27:48 +01:00
Adam Turner
bf57d21fcd Update `sphinx.deprecation` for Sphinx 8.0 (#12651) 2024-07-22 16:40:57 +01:00
Adam Turner
f31dbabf20 Remove `_StrPath` (#12650) 2024-07-22 16:22:41 +01:00
Adam Turner
aa12307cc2 Add version information for methods in `utils.docutils` (#12649) 2024-07-22 16:22:25 +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
8c6d234e96 Simplify `logger.error calls in validate_intersphinx_mapping` (#12644) 2024-07-22 14:41:31 +01:00
Adam Turner
e174df2762 Rename `normalize_intersphinx_mapping to validate_intersphinx_mapping` (#12643) 2024-07-22 13:32:44 +01:00
Bénédikt Tran
aacca3064e Remove support for the Sphinx 0.5 `intersphinx_mapping` format (#12083)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-07-22 12:59:59 +01:00
James Addison
45f3cd6324 HTML Search: Remove unused function-call arguments in tests (#12628) 2024-07-20 23:32:25 +01:00
Tim Hoffmann
a79768847f Improve the search field styling in the `sphinx13` theme (#12591) 2024-07-20 23:08:15 +01:00
Chris Sewell
dabacdf5f8 Turn `show_warning_types` on by default (#12597)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-07-20 21:07:06 +01:00
James Addison
cc08854bc2 linkcheck: Update configuration defaults for Sphinx 8.0 (#12630)
- Links that respond with HTTP 401 (unauthorized) responses are now considered ``broken`` by default.
- Timeouts that occur when checking a link are now reported with a distinct `timeout` status code, instead of the previous ``broken``.
- The previous behaviours are still available and can be configured on an opt-in basis per-project using ``conf.py``.

Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-07-20 20:41:22 +01:00
Bernhard M. Wiedemann
2034f7d3b2 Improve reproducibility by not storing timestamps in gzip files (#12606) 2024-07-20 20:08:49 +01:00
danieleades
952bdbbac2 Shrink mypy whitelist for `sphinx.cmd.quickstart` (#12617)
Co-authored-by: Daniel Eades <daniel.eades@seebyte.com>
2024-07-20 20:05:48 +01:00
danieleades
46fc784758 Shrink mypy whitelist for `sphinx.ext.autosummary.generate` (#12604) 2024-07-20 20:04:36 +01:00
danieleades
4808041cc9 Shrink mypy whitelist for `sphinx.ext.autodoc.directive` (#12602) 2024-07-20 20:03:50 +01:00
Adam Turner
4009fe0c8c Bump Ruff to 0.5.4 2024-07-20 19:59:32 +01:00
danieleades
20507af3d7 Add missing type stubs (#12619)
Co-authored-by: Daniel Eades <daniel.eades@seebyte.com>
2024-07-20 19:54:49 +01:00
Adam Turner
5a1c461642 Remove the tuple interface to `ObjectMember` 2024-07-20 19:40:29 +01:00
Adam Turner
93842508d2 Remove the `--no-use-make-mode` option from sphinx-quickstart 2024-07-20 19:40:29 +01:00
Adam Turner
af82d70c60 Raise `ThemeError` for invalid theme sections 2024-07-20 19:40:29 +01:00
Adam Turner
9f886cc878 Raise `ConfigError on invalid html_sidebars` values 2024-07-20 19:40:29 +01:00
Adam Turner
d33399a915 Remove deprecated functions in `sphinx.util.typing` 2024-07-20 19:40:29 +01:00
Adam Turner
7225e4032a Remove deprecated functions in `sphinx.util.osutil` 2024-07-20 19:40:29 +01:00
Adam Turner
35a0f7386b Remove deprecated functions in `sphinx.util` 2024-07-20 19:25:29 +01:00
Adam Turner
d444a0c800 Bump version 2024-07-20 18:44:49 +01:00
Adam Turner
0d912c85fd Bump to 7.4.7 final v7.4.7 2024-07-20 15:45:39 +01:00
Adam Turner
bbc97e0357 autosummary: Filter invalid import prefixes in `autolink` (#12626) 2024-07-20 15:19:55 +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
dd77f85149 Support callables in `Annotated` types (#12625) 2024-07-20 11:16:33 +01:00
Adam Turner
1ed4ca7e03 Mark `test_build_manpage` as XFAIL following changes in Docutils master 2024-07-20 11:03:16 +01:00
Adam Turner
cd8ce07d31 Update message catalogues following reverted commits 2024-07-20 10:59:30 +01:00
Adam Turner
c6cd25f50d Partially revert "Update message catalogues (#11626)"
This partially reverts commit 9078cf21df.
2024-07-20 10:57:26 +01:00
Adam Turner
fa2ba7d5ae Partially Revert "[bot]: Update message catalogues (#12563)"
This partially reverts commit f250270149.
2024-07-20 10:53:03 +01:00
Adam Turner
e439c6f33f Ensure that old-style object description options are respected (#12620) 2024-07-19 08:38:52 +01:00
Adam Turner
587da413ca Warn when files are overwritten in the build directory (#12612) 2024-07-19 08:20:48 +01:00
Adam Turner
3c5ed2bdaf Bump version 2024-07-19 02:03:05 +01:00
Adam Turner
1743486776 Bump to 7.4.6 final v7.4.6 2024-07-18 13:28:11 +01:00
Jean-François B.
64eff01db0 Add an entry to CHANGES.rst for GH-12520 (#12614)
Also reformulate 2 other LaTeX entries there-in to adopt the same style as other bug-has-been-fixed entries rather than reproducing the original bug description.
2024-07-18 13:20:28 +01:00
James Addison
f081136ebd intersphinx: Reduce log severity for ambiguity detection during inventory loading (#12615) 2024-07-18 13:15:20 +01:00
Adam Turner
f59f761cfa Revert unnecessary path operation changes 2024-07-18 12:51:15 +01:00
Adam Turner
e61f56950d Do not add the module prefix when generating autosummary documents (#12609) 2024-07-17 21:42:21 +01:00
James Addison
47757c4062 HTML search: Ensure that `checkRanking` fails when the final entry is not found (#12608)
The ``checkRanking`` function in our test suite has a bug; it's currently possible for the final item in the expected ranking list *not* to be found in the result-set, and yet for the function to pass.

**Expected Behaviour**
The ``checkRanking`` function should confirm that all of the items specified in the ``expectedRanking`` argument appear within the ``results`` argument, and in the list-iteration-order provided.  If they do not, then an assertion error should be raised, failing the test.

**Actual Behaviour**
If all items up until the final entry in the ``expectedRanking`` argument are found in the expected order, but the final entry itself is not found at all in the ``results``, then no assertion error is raised, and the test passes.
2024-07-17 16:29:55 +01:00
Adam Turner
fe9be8be5f Bump version 2024-07-17 15:13:37 +01:00