Commit Graph

20289 Commits

Author SHA1 Message Date
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
Adam Turner
1ea5a434b3 Fix `test_get_filename_for_language` on Windows 2023-08-12 04:23:56 +01:00
Adam Turner
1a47e3a8be Fix `test_missing_reference` on Windows 2023-08-12 04:23:48 +01:00
Adam Turner
8111a3a211 Fix `test_html_inventory` on Windows 2023-08-12 04:23:33 +01:00
Adam Turner
a392f4d5f4 Fix `test_graphviz_svg_html` on Windows 2023-08-12 02:57:55 +01:00
Adam Turner
4b082f7dbf Inline `css_tag and js_tag` 2023-08-12 02:38:44 +01:00
Adam Turner
58b628263f
Deprecate `css_files and script_files` (#11582) 2023-08-12 00:46:44 +00:00
Adam Turner
1db8cba339 Move CSS and JS file objects to `builders.html._assets` 2023-08-12 01:10:49 +01:00
Adam Turner
f07715e4cc Make DOCUMENTATION_OPTIONS `const` 2023-08-12 00:50:20 +01:00
Adam Turner
8e730ae303 Move the content root marker to the `<html>` element 2023-08-12 00:50:10 +01:00
Adam Turner
818895a158 Placate `isort` 2023-08-12 00:27:13 +01:00
Adam Turner
42a6546404 Move `_file_checksum() to sphinx.builders.html._assets` 2023-08-12 00:20:00 +01:00
Adam Turner
44a7820cd9 Raise an error when local asset files contain a `?` 2023-08-11 22:07:07 +01:00
Eric Larson
7758e01623
Provide the reason why a document is out of date in all cases (#11572) 2023-08-11 00:12:44 +01:00