Adam Turner
ad98c72290
Remove 'Previous versions' section in CHANGES
2023-04-04 19:03:30 +01:00
Adam Turner
961f96de7a
Use the `:dudir:` role with explicit titles
2023-04-04 18:34:58 +01:00
Adam Turner
15553da9c8
Resolve lint errors from Ruff 0.0.260
2023-03-31 17:52:51 +01:00
Adam Turner
f019b89c05
Run Ruff linting with a known-to-work version
...
This means that CI tests will only fail if the 'known good' version
fails. If the latest version of Ruff fails, perhaps due to new
checks, CI will not fail overall, but the failures from the latest
version will be reported.
2023-03-31 17:52:29 +01:00
Adam Turner
c7d7f2951d
Remove `sphinx.locale.setlocale`
2023-03-24 01:30:44 +00:00
Adam Turner
7d928b3e79
Increase `test_linkcheck` timeouts
2023-03-24 01:07:25 +00:00
Adam Turner
e3567bfb16
Update CHANGES for Sphinx 6.2.0
2023-03-24 01:05:15 +00:00
Adam Turner
f5c957597d
Normalise spelling of Sphinx versions
2023-03-24 00:44:33 +00:00
Adam Turner
97f07ca83c
Speed up `test_linkcheck`
2023-03-24 00:29:27 +00:00
Adam Turner
9df3b59e00
Resolve lint errors from Ruff 0.0.259
2023-03-23 21:58:49 +00:00
Adam Turner
2ee7d0f678
Resolve lint errors from Ruff 0.0.257
2023-03-18 14:59:20 +00:00
Adam Turner
17d4dfa7fb
Remove useless compatability imports
...
This exposed names at ``sphinx.builders.html.sphinxcontrib.serializinghtml``,
etc, which offers no benefit. This was originally broken in commit
9dfbfbf16b , four years ago.
2023-03-17 21:32:52 +00:00
Adam Turner
69066d0bb7
Split `sphinx.application.builtin_extensions` into groups
...
This is a preparatory step for when eventually the ``sphinxcontrib``
extensions are no longer loaded by default.
2023-03-17 21:22:19 +00:00
Adam Turner
075986c508
Miscellaneous `intersphinx` refactors
...
- Refactor usage of ``inventories.cache`` in ``load_mappings()``
- Iterate once over ``cached_vals``
- Avoid a line continuation character in ``_resolve_reference()``
2023-03-17 17:43:44 +00:00
Adam Turner
3d2114214b
Improve static typing in `intersphinx` et al
2023-03-17 17:43:23 +00:00
Adam Turner
ae9008b128
Require Docutils 0.18.1 or greater
...
``Node.findall()`` was introduced in `Docutils 0.18.1`__
__ https://docutils.sourceforge.io/RELEASE-NOTES.html#release-0-18-1-2021-12-23
2023-03-17 17:32:30 +00:00
Adam Turner
2902c6c55b
Deprecate legacy `intersphinx_mapping` format ( #11247 )
...
This format was made obsolete in Sphinx 1.0, but never formally deprecated.
2023-03-17 16:41:22 +00:00
Adam Turner
a846f958bc
Properly quote a string value in `transifex.yml`
2023-03-15 15:47:25 +00:00
Adam Turner
57545d0789
Update translations workflow for new `tx` client
2023-03-15 15:45:36 +00:00
Adam Turner
4d6aa53ae4
Refactor `utils/babel_runner.py`
2023-03-15 14:35:03 +00:00
Adam Turner
c2529e0a5e
Ignore `PLC1901` in Ruff
2023-03-15 14:35:03 +00:00
Adam Turner
29d7166af2
Drop OrderedDict
...
Since Python 3.7, dicts maintain insertion order.
2023-03-05 19:03:06 +00:00
Adam Turner
44326fe247
Remove tests that rely on setuptools
2023-03-05 19:03:06 +00:00
Adam Turner
43e681e88f
Remove `.egg support from pycode ModuleAnalyser`
...
Python eggs are a now-obsolete binary distribution format.
2023-03-05 19:03:06 +00:00
Adam Turner
f435fc05e6
Prefer `contextlib.chdir to sphinx.util.osutil.cd`
2023-03-05 18:49:17 +00:00
Adam Turner
c5641702b5
Update tests for Babel 2.12 (CLDR 42)
2023-03-05 13:32:37 +00:00
Adam Turner
18f8c0bfc8
Resolve lint errors from Ruff 0.0.254
2023-03-05 12:54:24 +00:00
Adam Turner
ba080286b0
Explicitly select all linter checks
2023-02-18 02:16:50 +00:00
Adam Turner
f363f1b058
Update Ruff configuration
2023-02-18 02:16:50 +00:00
Adam Turner
4804390604
Resolve `flake8-return` errors
2023-02-18 02:16:50 +00:00
Adam Turner
6c56988979
Unescape quotation marks where possible
2023-02-18 02:16:50 +00:00
Adam Turner
13442f6901
Fix pytest style issues
2023-02-18 02:16:50 +00:00
Adam Turner
dc1a519a1d
Avoid `unittest.TestCase` methods
2023-02-18 02:05:14 +00:00
Adam Turner
f6435a9bc3
Prefer `@pytest.fixture()`
2023-02-18 01:58:05 +00:00
Adam Turner
c8f4a03dac
Fix COM812
2023-02-18 01:58:05 +00:00
Adam Turner
cfd43d4dbe
Simplify coverage workflow reporting
...
``PYTHONDEVMODE`` and ``PYTHONWARNDEFAULTENCODING`` are used in the
main tests, remove from the coverage workflow.
2023-02-15 05:24:51 +00:00
Adam Turner
9b104523e9
Ignore `coverage.py` warnings
2023-02-15 05:14:44 +00:00
Adam Turner
c17300aa7a
Treat Python warnings as errors during testing
2023-02-15 04:34:10 +00:00
Adam Turner
a502e75233
Refactor `sphinx.util.images.guess_mimetype`
2023-02-15 04:10:18 +00:00
Adam Turner
607908924c
Always cancel in-progress workflows on new commits
...
The current ``github.head_ref || github.run_id`` syntax only cancels
in-progress GitHub Actions runs triggered by pull requests, as
``head_ref`` is only defined for pull requests, and ``run_id`` is
always unique. This changes to using ``ref``, which is the name of
the branch or tag linked to the commit, meaning that in-progress jobs
will be cancelled on pushes to a branch.
2023-02-15 03:35:49 +00:00
Adam Turner
ff852bc7c3
Update GitHub Actions workflows
2023-02-15 03:10:50 +00:00
Adam Turner
bb9821b968
Resolve Ruff SIM114 violations
2023-02-15 02:09:47 +00:00
Adam Turner
ffe4c079d3
Define `sphinx.builders.gettext.LocalTimeZone.tzname()`
2023-02-11 13:26:36 +00:00
Adam Turner
bd4684f483
Fix Ruff bidirectional text errors
2023-02-11 13:17:18 +00:00
Adam Turner
845ef67f6c
Ignore some pylint checks in Ruff
2023-02-09 03:36:40 +00:00
Adam Turner
fd3c619dbf
Collapse `.startswith and .endswith` tests
2023-02-09 03:36:17 +00:00
Adam Turner
4c4745af9c
Fix various Ruff errors
2023-01-31 18:30:43 +00:00
Adam Turner
7395b05b1c
Ignore various lint checks in Ruff
2023-01-31 18:30:20 +00:00
Adam Turner
fedce24134
Ruff code TYP renamed to TCH
2023-01-31 18:13:53 +00:00
Adam Turner
a7bf030944
Remove unneeded typing imports
2023-01-23 08:44:54 +00:00
Adam Turner
a6c21f92f8
Enable more Ruff checks
2023-01-23 08:32:25 +00:00
Adam Turner
b069d80924
Detect import sorting problems with Ruff
2023-01-23 08:10:22 +00:00
Adam Turner
999b20ff43
Sort imports with Ruff's convention
2023-01-23 08:10:03 +00:00
Adam Turner
3c8b76d1cc
Ignore `S701` in Ruff
2023-01-23 08:07:31 +00:00
Adam Turner
bf88cd44d0
Ignore `SIM115` in Ruff
2023-01-23 08:07:31 +00:00
Adam Turner
a6b34dd13d
Update `PL` code ignores in Ruff
2023-01-23 08:07:31 +00:00
Adam Turner
e17f39e7b5
Merge branch '6.1.x'
...
# Conflicts:
# CHANGES
# sphinx/__init__.py
2023-01-10 16:00:59 +00:00
Adam Turner
30f347226f
Bump version
2023-01-10 15:56:43 +00:00
Adam Turner
776d01eb62
Bump to 6.1.3 final
2023-01-10 15:55:21 +00:00
Adam Turner
a2e922ac6c
CHANGES for Sphinx 6.1.3
2023-01-10 15:55:03 +00:00
Adam Turner
31162a9b63
Handle exceptions for `get_node_source and get_node_line`
2023-01-10 15:51:37 +00:00
Adam Turner
dcb4429aba
Restore Sphinx 5 `nodes.Element` copying behaviour
2023-01-10 14:53:17 +00:00
Adam Turner
2a7c40d07f
Undo parallel image changes
2023-01-10 14:53:17 +00:00
Adam Turner
7841d3d9b2
Ignore more checks in Ruff 0.0.214
2023-01-10 14:53:17 +00:00
Adam Turner
670bcb743b
Documentation reshuffle ( #11112 )
2023-01-08 13:52:36 +00:00
Adam Turner
67291f414e
Replace deprecation tooling with module level `__getattr__` ( #11054 )
2023-01-08 00:27:19 +00:00
Adam Turner
f022db3e8a
Ignore more checks in Ruff 0.0.214
2023-01-07 22:28:45 +00:00
Adam Turner
a13cf2c24d
Adopt `profile = "black" for isort`
...
This allows using Ruff's import sorting fixers
2023-01-07 18:31:15 +00:00
Adam Turner
8384aa51a7
Merge branch '6.1.x'
...
# Conflicts:
# CHANGES
# sphinx/__init__.py
2023-01-07 17:51:48 +00:00
Adam Turner
ddbc5b57f4
Bump version
2023-01-07 17:45:46 +00:00
Adam Turner
393b408252
Bump to 6.1.2 final
2023-01-07 17:38:13 +00:00
Adam Turner
d8a5dd8364
Add note to CHANGES for PR 11100
2023-01-07 17:37:41 +00:00
Adam Turner
a1cd19e601
Fix copying images under parallel execution ( #11100 )
2023-01-07 17:35:21 +00:00
Adam Turner
5008291b3d
Ignore more checks in Ruff 0.0.213
2023-01-07 15:08:21 +00:00
Adam Turner
13a87d8070
Call `hashlib functions with usedforsecurity=False`
2023-01-06 19:00:22 +00:00
Adam Turner
f0dbe8180d
Merge branch '6.1.x'
...
# Conflicts:
# CHANGES
# sphinx/__init__.py
2023-01-06 16:30:42 +00:00
Adam Turner
77aaa8696a
Bump to 6.1.1 final
2023-01-05 16:58:09 +00:00
Adam Turner
476c115b0e
Suppress `ValueError in apply_source_workaround` ( #11092 )
2023-01-05 16:56:27 +00:00
Adam Turner
c80d656caf
Bump version
2023-01-05 16:42:49 +00:00
Adam Turner
6e6b9ad451
Bump version
2023-01-05 13:21:52 +00:00
Adam Turner
4e1004a9c5
Bump to 6.1.0 final
2023-01-05 12:23:09 +00:00
Adam Turner
a2176d47b5
Fix deprecation warnings
2023-01-05 12:17:54 +00:00
Adam Turner
2c104e9838
Merge branch '6.0.x'
...
# Conflicts:
# CHANGES
2023-01-05 12:07:18 +00:00
Adam Turner
a27d262ffe
Bump to 6.0.1 final
2023-01-05 11:58:30 +00:00
Adam Turner
821569ea8a
Add note for Pygments
2023-01-05 11:56:41 +00:00
Adam Turner
223bb317a7
Updated CHANGES for Sphinx 6.1.0
2023-01-04 17:10:33 +00:00
Adam Turner
463a69664c
Cache doctrees between reading and writing phases
2023-01-04 14:39:40 +00:00
Adam Turner
a9b0f2708b
Cache doctrees more efficiently
2023-01-04 05:46:23 +00:00
Adam Turner
f4ab9adf77
Move XML Name pattern to `epub3`
2023-01-03 22:36:54 +00:00
Adam Turner
5eb79c126a
Move exception formatting utilities to `sphinx.util.exceptions`
2023-01-03 22:09:30 +00:00
Adam Turner
081d72b2f7
Deprecate `path_stabilize via deprecated_alias`
2023-01-03 21:40:29 +00:00
Adam Turner
3b3ce9cf7b
Move HTTP-date formatting utils to utils.http_date
2023-01-03 19:02:38 +00:00
Adam Turner
8c5e7013ea
Move console output utilities to `sphinx.util.display`
...
- Merge `old_status_iterator` into ``status_iterator``.
``old_status_iterator`` was deprecated in version 1.6.
2023-01-03 18:37:20 +00:00
Adam Turner
1b887e4c5c
Update ruff configuration
2023-01-03 18:37:20 +00:00
Adam Turner
29e12ec4db
Document `typing.NewType` as a class ( #10700 )
2023-01-02 18:57:04 +00:00
Adam Turner
77a02cf696
Use PEP 604 display for `typing.Optional and typing.Union` ( #11072 )
2023-01-02 17:49:18 +00:00
Adam Turner
dc3f22a370
Make MyPy happy
2023-01-02 17:41:28 +00:00
Adam Turner
b32841e153
Move tasks into parallel writing
2023-01-02 17:41:13 +00:00
Adam Turner
087522cf79
Rewrite IndexBuilder loading
2023-01-02 17:40:38 +00:00
Adam Turner
4c44f22009
Use `re` flags
2023-01-02 17:39:35 +00:00