Commit Graph
134 Commits
Author SHA1 Message Date
Adam Turner 412cebf166 Increase minimum required dependency versions (#14766) 2026-10-20 16:41:01 -07:00
Adam Turner 8ffd1ad8c3 Bump ty to 0.0.90 (#14763) 2026-10-20 15:13:07 -07:00
Adam Turner 9448f26ec6 Drop support for Python 3.12 (#14762) 2026-10-20 14:11:44 -07:00
Adam Turner 943bf0d191 Use Ruff rule names in place of codes (#14761) 2026-10-20 13:23:50 -07:00
Adam Turner f03a2433a9 Bump Ruff to 0.17.1 (#14760) 2026-10-20 13:12:08 -07:00
Adam Turner ce19a75e3c Ignore fewer Ty rules (#14184) 2025-12-15 21:31:10 +00:00
Adam Turner b9650d5d26 Remove some entries from the mypy whitelist (#14182) 2025-12-15 19:55:28 +00:00
71cc5d8479 Bump types-docutils to 0.22.3.20251115 (#13634)
Co-authored-by: Adam Dangoor <adamdangoor@gmail.com>
Co-authored-by: danieleades <33452915+danieleades@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: daniel.eades <daniel.eades@seebyte.com>
2025-12-10 15:41:41 +00:00
Adam Turner ad0497b89d Drop support for Python 3.11 (#14153) 2025-12-05 22:12:06 +00:00
Adam Turner 766976f6a8 Run the ty type checker in CI (#14129) 2025-11-30 05:46:41 +00:00
Rui PinheiroandAdam Turner dbb4e99d43 Use the `FORWARDREF annotation format with inspect.signature()` (#13946)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2025-11-29 01:24:41 +00:00
Adam Turner 63f80adeff Reduce pyright exclusions (#14111) 2025-11-28 00:40:38 +00:00
Adam Turner 45e1ae646c Remove deprecated API (#14095) 2025-11-25 20:15:39 +00:00
Adam Turner 01701485db Introduce `sphinx.ext.autodoc._dynamic` subpackage (#14087) 2025-11-25 04:25:48 +00:00
Shengyu ZhangandAdam Turner 9ca942bef6 Support images with non-base64 data URIs (#14006)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2025-11-25 03:04:33 +00:00
Tamika NomaraandAdam Turner 245dea0911 Fix `autodoc_type_aliases when appearing in PEP 604 unions (X | Y`) (#14007)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-11-05 00:57:57 +00:00
Adam Turner fcc9ca037d Define and use `TEST_ROOTS_DIR` (#14020) 2025-11-03 16:09:48 +00:00
Günter Milde 56939e92c2 Fix test setup for directive tests with Docutils 0.22+ (#13883) 2025-10-05 02:49:40 +01:00
Adam DangoorandAdam Turner 36b0571901 Enable `disallow_incomplete_defs` for mypy (#13793)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-07-31 18:58:26 +01:00
Adam Dangoor 8784a785c7 Remove mypy overrides for `tests/test_util/test_util_docutils.py` (#13770) 2025-07-27 23:12:33 +01:00
Szymon Karpiński 8949df498f Fix intersphinx reftitle for non-numeric versions (#13737)
Signed-off-by: Szymon Karpiński <skarpinski@nvidia.com>
2025-07-19 11:34:06 +01:00
Adam Turner 97f2fb2e13 Add `_get_settings()` helper function (#13672) 2025-06-17 01:27:14 +01:00
Adam Turner e1bd9cb386 Make `_prepend_prologue() and _append_epilogue()` private (#13658) 2025-06-11 19:43:47 +01:00
Adam Turner 40b0f80489 Use `config.verbosity` (#13650) 2025-06-11 15:58:53 +01:00
Adam TurnerandAdam Dangoor 3601161f0e Bump types-docutils to 0.21.0.20250525 (#13630)
Co-authored-by: Adam Dangoor <adamdangoor@gmail.com>
2025-06-07 16:36:42 +01:00
Adam Turner 987ccb2a97 Prefer `str.partition over str.split(..., maxsize=1)` 2025-06-03 00:37:45 +01:00
Adam Dangoor 1a69059295 Remove mypy overrides for `tests/test_util/test_util_display.py` (#13583) 2025-05-22 11:20:37 +01:00
Adam Dangoor a94fcd9e66 Remove mypy overrides for `tests/test_util/test_util_inventory.py` (#13582) 2025-05-22 05:55:52 +01:00
Adam Dangoor 4451a0a18a Remove mypy overrides for `tests/test_util/test_util.py` (#13584) 2025-05-22 05:54:49 +01:00
Adam Dangoor 4dbdf802ce Remove mypy overrides for `test_util_fileutil` (#13552) 2025-05-21 00:47:52 +01:00
Adam Turner 0eae573102 Remove `section_parents` (#13560)
Docutils revision r10129 [1] removes the member from the namespace.

[1]: https://sourceforge.net/p/docutils/code/10129/
2025-05-20 00:05:07 +01:00
Adam Turner 5355a78e79 Fix `test_util` for Docutils 0.22+ (#13548) 2025-05-12 21:44:41 +01:00
Adam Turner 4051354182 Mark tests as expected failures on Docutils 0.22.0rc2 (#13547) 2025-05-12 21:23:22 +01:00
Adam DangoorandAdam Turner 5a73bf6af0 Disallow untyped defs in `tests/test_util/test_util_images.py` (#13543)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2025-05-12 17:31:12 +01:00
Adam Dangoor c0c0413493 Remove mypy overrides for `tests.test_util.test_util_matching` (#13449) 2025-03-24 19:28:03 +00:00
Aarni Koskela fc8054cc30 Fall back to 'en' if format_date is called with a falsy value (#13408) 2025-03-20 18:49:07 +00:00
Adam Turner e01e42f5fc Fix `INVALID_BUILTIN_CLASSES` test for Python 3.14.0a6+ 2025-03-19 20:11:35 +00:00
Adam Turner 58e64d4016 Fix `_relative_path()` for unresolved paths 2025-02-21 23:19:10 +00:00
Adam Turner f3e0de1da0 Avoid using attributes of `app` 2025-02-16 04:25:08 +00:00
Adam Turner f1fbbfcbb7 Add annotations to several single-argument ('app') test functions 2025-02-16 01:40:30 +00:00
Adam Turner a980fbcafa Add return annotation to several zero-argument test functions 2025-02-15 23:23:56 +00:00
Adam Turner 139d6b0936 Use full URLs for links to issues and pull requests 2025-02-15 21:47:31 +00:00
Adam Dangoor 3f2b211fb7 Remove mypy overrides for `tests.test_util.test_util_uri` (#13342) 2025-02-15 20:12:46 +00:00
Matthias GeierandAdam Turner 94563a398b Un-deprecate `sphinx.util.import_object` (#13330)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2025-02-11 19:07:27 +00:00
Adam Turner baddae6611 Move `test_log_no_ansi_colors` 2025-02-11 01:42:39 +00:00
Adam Turner 22e0f8944b Use pathlib in more places 2025-02-07 13:51:42 +00:00
Adam Turner 34519be296 Ignore test failures from broken Babel 2.17 on Windows (#13290) 2025-02-02 20:01:21 +00:00
Adam Turner 82e9182d43 Initial implementation of an `_Inventory` type (#13275) 2025-01-29 00:46:08 +00:00
Adam Turner 705c1beb16 Convert _INVALID_BUILTIN_CLASSES to use strings instead of runtime objects (#13270)
This is a more flexible approach that does not require importing several modules and types into ``sphinx.util.typing``.
2025-01-27 19:17:00 +00:00
Adam Turner 7406d4222f Move mypy test module exclusions to per-module ignores (#13265) 2025-01-26 19:41:15 +00:00