Tiger3018
af3bb3687c
Use warning types and sub-types in more places ( #11677 )
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com >
2025-01-29 19:22:44 +00:00
Adam Turner
a56fdad70b
Use `sphinx._cli.util.colour
in
sphinx.util.console
` ( #13241 )
2025-01-16 16:57:28 +00:00
Adam Turner
3af48520d2
Require the PEP 563 'annotations' future import
2024-11-22 21:54:26 +00:00
Adam Turner
fadb6b10cb
Stop exiting early with `--fail-on-warnings
; add
--exception-on-warning
` ( #12743 )
...
Co-authored-by: Jeremy Maitin-Shepard <jbms@google.com >
2024-08-13 17:12:42 +01:00
Adam Turner
d03156e078
Format `tests/
` ( #12760 )
2024-08-11 14:58:56 +01:00
Adam Turner
620e434f65
Improve string concatenation ( #12758 )
...
Use implicit concatenation over ``+``, and combine some implicit concatenations
to a single string literal.
2024-08-11 00:39:35 +01:00
Adam Turner
1f2891530d
Use `app.status
and
app.warning
` in tests ( #12663 )
2024-07-23 15:35:55 +01:00
Chris Sewell
dabacdf5f8
Turn `show_warning_types
` on by default ( #12597 )
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com >
2024-07-20 21:07:06 +01:00
Adam Turner
740b964d45
fixup! Elaborate a little more in the warning message for `config.cache
`
2024-04-17 21:50:46 +01:00
Chris Sewell
430866e029
👌 Add warning log for config values that cannot be cached ( #12203 )
...
As a user and/or extension developer, it can be a source of confusion when,
on performing a `sphinx-build` for a cached project,
an unchanged configuration variable is always marked as changed (triggering a full rebuild).
This is often due to the variable being an unpicklable value,
which is silently omitted from the cache (i.e. the `environment.pickle`).
This commit introduces a specific warning for when a configuration variable is omitted from the cache,
allowing users to understand the root of the problem.
2024-03-27 12:59:24 +01:00
Bénédikt Tran
f24eef7b6b
[cleanup] deprecate `sphinx.testing.util.strip_escseq
in favor of
sphinx.util.console.strip_colors
` ( #12186 )
2024-03-24 00:43:54 +01:00
Adam Turner
4c9364896e
Consolidate warnings tests in `test_build_warnings
`
2024-01-19 02:28:06 +00:00