Commit Graph

20302 Commits

Author SHA1 Message Date
Adam Turner
ffb14f59bc Remove calls to `builtins.print()` 2023-08-15 16:58:57 +01:00
Stephen Finucane
53a930f8c7
Fix C coverage support in `sphinx.ext.coverage` (#11591) 2023-08-15 14:50:15 +01:00
Stephen Finucane
1e0bc26426
Remove errant print in `sphinx.ext.coverage` (#11593) 2023-08-15 14:26:17 +01:00
Bénédikt Tran
19018f01b6
Improve SigElementFallbackTransform fallback logic. (#11311)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-08-15 14:25:25 +01:00
Matthias Geier
65fd5be20d
Use the 'toctree-wrapper' class for the `sphinx13` theme (#11129) 2023-08-14 23:40:42 +01:00
picnixz
2656f34848
Fix rendering of `Literal` annotations with enum values (#11517)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-08-14 23:33:57 +01:00
Riccardo Mori
137b3adce1
Make stringify_annotation recursive on builtins with args (#11570)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-08-14 19:28:12 +01:00
Halldor Fannar
0bad447070
Emit "source-read" events for files read via the `include` directive (#11510)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
Co-authored-by: picnixz <10796600+picnixz@users.noreply.github.com>
2023-08-14 16:02:04 +01:00
Adam Turner
6cb783c002 Enable SIM105 (use contextlib.suppress) 2023-08-14 00:18:14 +01:00
Adam Turner
3a5e1f11ab Enable SIM114 (combine if branches using logical or operator) 2023-08-14 00:18:14 +01:00
Adam Turner
f844055dda Fix SIM115 (use context handler for opening files) 2023-08-14 00:18:14 +01:00
Adam Turner
08dbaa793e Fix SIM117 (use single 'with' statement) 2023-08-14 00:18:13 +01:00
Adam Turner
3600862477 Fix SIM118 (use `key in dict not key in dict.keys()`) 2023-08-14 00:18:13 +01:00
Adam Turner
9bcf1d8bb3 Fix TCH001 (move application import into a type-checking block) 2023-08-14 00:18:13 +01:00
Adam Turner
36012b7d96 Fix TCH002 (move third-party import into a type-checking block) 2023-08-13 22:50:03 +01:00
Adam Turner
1fae1470a4 Fix SLOT002 (subclasses of collections.namedtuple() should define `__slots__`) 2023-08-13 22:32:46 +01:00
Adam Turner
e73300b829 Fix SLOT000 (subclasses of str should define `__slots__`) 2023-08-13 22:32:46 +01:00
Adam Turner
6f3c5b8a2c Deprecate `ObjectMember.__getitem__()` 2023-08-13 22:32:46 +01:00
Adam Turner
9bf0f491f9 Update Ruff configuration for 0.0.284 2023-08-13 22:11:15 +01:00
Adam Turner
6cd8723f5d Fix B034 (use keyword arguments for calls to `re.split()`) 2023-08-13 22:11:15 +01:00
Adam Turner
60f37b8b90 Enable EXE002 (file executable but no shebang present) 2023-08-13 22:11:15 +01:00
Adam Turner
d80eab689d Fix EM10{1,2} (exception must not use a string) 2023-08-13 22:11:15 +01:00
Adam Turner
ae0d97bb26 Use `parsedate_tz` in the linkcheck builder 2023-08-13 22:11:15 +01:00
Adam Turner
b533ef1662 Fix DTZ00{0-4} (Do not use naive datetime objects) 2023-08-13 22:11:15 +01:00
Adam Turner
79d196358f Use `time.strftime()` to calculate today's date 2023-08-13 22:11:15 +01:00
Adam Turner
d4169a32e7 Use `parsedate_tz` in the linkcheck builder 2023-08-13 22:11:15 +01:00
Adam Turner
f1b2682d58 Format modified times without `datetime` 2023-08-13 22:11:15 +01:00
Adam Turner
5a1e5f5e94 Compute local time with less fuss 2023-08-13 22:11:15 +01:00
Adam Turner
f8e9536344 Refactor `duration` to store time in seconds 2023-08-13 22:11:15 +01:00
Adam Turner
e010e24728 Fix B904 (raise exceptions with `raise ... from ...`) 2023-08-13 22:11:15 +01:00
Adam Turner
db6d5aee2c Enable B028 (no explicit stacklevel keyword argument found) 2023-08-13 22:11:15 +01:00
Adam Turner
5511c45f2d Enable B026 (keyword argument must come after starred arguments) 2023-08-13 22:11:15 +01:00
Adam Turner
bbfd3cd248 Fix B023 (function definition does not bind loop variable) 2023-08-13 22:11:15 +01:00
Adam Turner
1dcc112608 Fix B006 (Do not use mutable data structures for argument defaults) 2023-08-13 22:11:15 +01:00
Adam Turner
4791b544dc Fix COM819 (Trailing comma prohibited) 2023-08-13 22:11:15 +01:00
Adam Turner
92e60b3f15 Fix PGH003 (type: ignore comment must have parameters) 2023-08-13 22:11:15 +01:00
Adam Turner
e2ff04eafe Fix RES102 (Remove unnecessary parentheses) 2023-08-13 22:11:15 +01:00
Adam Turner
064b627953 Convert bump_docker.sh to Python 2023-08-13 16:55:50 +01:00
Adam Turner
fa17437254 Remove hidden pass-through calls when adding asset files
``Sphinx.add_css_file()`` called ``Builder.add_css_file()``
and``Sphinx.add_js_file()`` called ``Builder.add_js_file()``.
2023-08-12 08:50:33 +01:00
Adam Turner
916d8274bb Add class boilerplate 2023-08-12 08:47:19 +01:00
Dmitry Shachnev
449020ec3d
Highlight all search terms on the search results page (#10930)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-08-12 06:57:34 +00:00
picnixz
af38180a14
Allow inline links in first line of Google style docstrings (#11316) 2023-08-12 07:24:28 +01:00
Adam Turner
db739afaeb Update permissions in the tutorial deployment workflow 2023-08-12 06:42:33 +01:00
Adam Turner
0a42d91e7e Fix `test_{html,latex}_warnings` 2023-08-12 06:40:55 +01:00
Adam Turner
7d8df06e19 Relax Pygments parsing on lexing failures 2023-08-12 06:27:16 +01:00
Adam Turner
7e9a2066c2 Be more ephemeral (in anchor link title text) 2023-08-12 05:30:38 +01:00
Adam Turner
0e2ba0a1e4 Add CHANGES entry for GH-11546 2023-08-12 05:00:41 +01:00
Adam Turner
b3e3c1add9 Raise an error if `graphviz_dot` is falsy 2023-08-12 04:58:20 +01:00
Adam Turner
2ef9728b6e
Mark idempotent translations as 'translated' (#11580) 2023-08-12 04:51:52 +01:00
Adam Turner
c19f0ac8e9 Clarify why `test_logging_in_ParallelTasks` fails on Windows 2023-08-12 04:24:09 +01:00