Commit Graph

4619 Commits

Author SHA1 Message Date
Adam Turner
1cb9fc3e63 Split `test_build_html` 2024-01-18 00:52:25 +00:00
Adam Turner
462404cb25 Organise tests into directories 2024-01-17 03:56:35 +00:00
Adam Turner
841f2bd9b7 Remove unneeded uses of `flat_dict()` 2024-01-17 01:58:52 +00:00
Nicolas Peugnet
59cf4d4c35 Allow custom targets in the manpage role (#11825)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-01-17 01:09:18 +00:00
James Addison
95fb0e5e57 Ensure that document titles are sorted in `searchindex.js` (#11888) 2024-01-17 01:08:29 +00:00
Adam Turner
569fde84d4 Happy New Year! 2024-01-16 22:13:47 +00:00
Adam Turner
55f3089981 Improve uses of `str.join` with a throwaway list 2024-01-16 22:06:34 +00:00
Shengyu Zhang
1b39b20479 Use `repr() when an enum has a custom __repr__()` (#11879)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-01-16 20:28:22 +00:00
danieleades
f7fbfaa471 Enable various pydocstyle (D) rules (#11878)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-01-14 21:13:46 +00:00
Adam Turner
23cef9b59a Use `https://` where possible 2024-01-14 04:18:57 +00:00
James Addison
9e198c70fd linkcheck: add a distinct 'timeout' reporting status (#11876) 2024-01-13 08:14:06 +00:00
James Addison
3b5d2afb9a Fix 'test_html_scaled_image_link' for Docutils' HEAD (#11863)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-01-10 01:01:47 +00:00
James Addison
5211c01646 Enable reporting HTTP 401 hyperlinks as broken in linkcheck (#11684)
Co-authored-by: picnixz <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-01-09 12:33:40 +00:00
Adam Turner
db9e476288 Increase the minimum supported version of Alabaster to 0.7.14 (#11858) 2024-01-08 19:49:04 +00:00
Adam Turner
18394ae96b Add more types with an incorrect `__module__` attribute (#11861) 2024-01-08 18:25:05 +00:00
Adam Turner
e570f56022 Enable flake8-logging (LOG) rules 2024-01-04 04:16:13 +00:00
Adam Turner
1b4177540e Enable RUF017 2024-01-04 04:12:26 +00:00
Adam Turner
97a83acb17 Enable RUF013 2024-01-04 04:12:26 +00:00
Adam Turner
9d6667d8f7 Enable Ruff perflint (PERF) rules 2024-01-04 04:12:26 +00:00
Adam Turner
3d98eeea79 Update Ruff to 0.1.11 2024-01-04 02:43:52 +00:00
Dimitri Papadopoulos Orfanos
460a63010f Fix various spelling errors (#11735) 2024-01-04 02:37:44 +00:00
Adam Turner
efd24cf4ca Defer computation of configuration values (#11855) 2024-01-04 02:23:45 +00:00
Adam Turner
4ce2d84761 Move special-case bool conversion to 'gettext' 2024-01-03 23:41:35 +00:00
Adam Turner
68af0ac2be Make `Config.values` private 2024-01-03 22:17:11 +00:00
Adam Turner
259118d182 Narrow the type for configuration option 'valid_types' values 2024-01-03 21:51:39 +00:00
Adam Turner
fd23cf0256 Introduce a configuration option type
* Normalise rebuild values
* Ensure that the tuple interface continues to work
2024-01-03 19:58:55 +00:00
Dimitri Papadopoulos Orfanos
b9691c0ce6 Add some recent Ruff rules (#11833) 2024-01-02 01:22:08 +00:00
James Addison
d66d51ad8c test_build_linkcheck: test_defaults: fix line-number assertion when using docutils 0.21b+ (#11818)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2023-12-30 13:38:30 +01:00
danieleades
f7f4fb42b0 Enable more entire categories in Ruff (#11816)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-12-29 09:55:28 +00:00
James Addison
246312287e Resolve lint warnings reported by Ruff (#11719) 2023-12-28 06:51:32 +00:00
danieleades
64e7ba5e3f Enable the entire pycodestyle category (#11820)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-12-28 06:41:32 +00:00
Hugo van Kemenade
7d4ca9cb3e Fix autodoc tests for Python 3.11 and later (#11793)
Since Python 3.11.7, 3.12.0 and 3.13.0a2, "list of weak references to the object (if defined)" was changed to "list of weak references to the object".

Add a version check to decide which text to assert.
2023-12-26 04:10:22 +00:00
Adam Turner
8878bee000 Replace the header image with a new SVG logo 2023-10-04 16:56:46 +01:00
James Addison
71d3eaee75 Add 'noindex' meta robots tag to the search results page (#11700) 2023-10-03 14:15:57 +01:00
Jakob Lykke Andersen
b9c85984d2 intersphinx: Group all std domain tests together 2023-09-21 23:04:42 +01:00
Bénédikt Tran
46f8f76e56 Fix the lazy loading conditions for MathJax (#11597)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-09-21 18:18:09 +01:00
Aryaz Eghbali
abf42e901e Skip all hidden directories in `CatalogRepository` (#11667)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-09-21 09:30:26 +00:00
Bénédikt Tran
5fe0bd41eb Strip ANSI control codes when writing to the warnings file (#11624)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-09-21 10:01:07 +01:00
Adam Turner
cb0c6a359b Add `sphinx.util._strip_escape_sequences` 2023-09-20 23:55:00 +01:00
Pietro Albini
8e768e6c23 Make `searchindex.js deterministic (#11665) 2023-09-16 04:36:51 +01:00
Vinay Sajip
f0c25a0ada Raise a useful error if `theme.conf` doesn't exist (#11671) 2023-09-14 11:49:41 +01:00
Matt Wozniski
43d69755df Leverage `importlib.reload` for reloading modules (#11679)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-09-13 22:58:35 +01:00
Adam Turner
3d0110a95a Enable test_cython on Python 3.12 2023-09-13 03:07:19 +01:00
Adam Turner
2a631f97ef Restore support for YYYY copyright lines 2023-08-30 22:51:23 +01:00
Adam Turner
ff18318613 Add an `'include-read'` event (#11657) 2023-08-30 22:21:16 +01:00
Adam Turner
7d046a862f Allow `?config=... in mathjax_path` (#11659) 2023-08-30 19:35:29 +01:00
Albert Y. Shih
4692208fde Fix two relative link bugs in inheritance diagrams (#11634)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-08-30 18:44:37 +01:00
Matt Wozniski
8248be31db autodoc: Reset `sys.modules` on partial import failure (#11645)
If importing with ``TYPE_CHECKING is True`` fails, reset the state of ``sys.modules``
so that the attempt with ``TYPE_CHECKING is False`` may succeed.

Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-08-29 20:05:41 +01:00
Dmitry Shachnev
2f025a4b22 linkcheck: Fix conversion from UTC time to the UNIX epoch (#11649)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-08-28 03:39:13 +00:00
Adam Turner
5e88b9f886 Fix the MoveModuleTargets transform (#11647)
This resolves a regression introduced in GH-10478
(commit 97d2c5da2f).
2023-08-26 09:30:28 +00:00