Commit Graph

37 Commits

Author SHA1 Message Date
Steven Hiscocks
e38456d4e1 Fix issue with warnings without subtype being incorrectly suppressed
This fixes an issue with warnings that have been raised with no subtype
being suppressed if a suppress warnings value with a subtype has been set.
e.g. all `autodoc` warnings should not be suppressed if
`autodoc.import_object` is only set to be suppressed.
2021-09-20 12:16:14 +01:00
Christian Clauss
86583c578c Fix typos discovered by codespell 2021-09-08 02:15:25 +02:00
Takeshi KOMIYA
f996859420 A happy new year!
.. note::

   $ find sphinx tests LICENSE doc/conf.py -type f -exec sed -i '' -e 's/2007\-20../2007-2021/' {} \;
   $ git co sphinx/locale/**/*.js sphinx/templates/epub3/mimetype
2021-01-01 13:40:48 +09:00
Takeshi KOMIYA
1ca220762b Fix #7423: crashed when giving a non-string object to logger 2020-04-09 00:17:37 +09:00
Takeshi KOMIYA
6f60864d03 Add "once" option to logger.warning() 2020-03-21 19:48:55 +09:00
Takeshi KOMIYA
2f33b9376b Add suppress_logging()
As a helper for C/C++ domain, this adds suppress_logging().  It
works as a context manager and suppresses all loggings during the
context temporarily.
2020-03-18 01:35:30 +09:00
Takeshi KOMIYA
eaf495c3c4 A happy new year! 2020-01-01 14:27:43 +09:00
Takeshi KOMIYA
6f529f01ed Fix #6803: Disable parallel build on macOS and py38+ 2019-12-01 16:01:19 +09:00
Takeshi KOMIYA
76e9f57c2e Merge branch '1.8' 2019-01-02 16:16:25 +09:00
Takeshi KOMIYA
1b1ebd2c75 A happy new year! 2019-01-02 16:00:30 +09:00
Jon Dufresne
bade33c7e4 Remove unnecessary encoding cookie from Python source files
In Python 3, the default encoding of source files is utf-8. The encoding
cookie is now unnecessary and redundant so remove it. For more details,
see the docs:

https://docs.python.org/3/howto/unicode.html#the-string-type

> The default encoding for Python source code is UTF-8, so you can
> simply include a Unicode character in a string literal ...

Includes a fix for the flake8 header checks to stop expecting an
encoding cookie.
2018-12-16 12:22:12 -08:00
Takeshi KOMIYA
c6bd84a614 refactor: Remove u-prefix from strings 2018-12-16 21:28:51 +09:00
Takeshi KOMIYA
b56f4f9022 Remove print_function feature 2018-12-15 23:16:10 +09:00
Takeshi KOMIYA
4ed5c51cff logging: Add prefixed_warnings() helper 2018-10-17 11:21:22 +09:00
Takeshi KOMIYA
910be1e2a2 Close #4976: `SphinxLoggerAdapter.info() now supports location` parameter 2018-06-26 01:02:37 +09:00
Takeshi KOMIYA
f7027049b1 Fix flake8 violations 2018-02-19 23:20:56 +09:00
Takeshi KOMIYA
273f834157 Fix #4081: Warnings and errors colored the same when building 2018-01-08 12:29:06 +09:00
Takeshi KOMIYA
2426cedb8b A happy new year! 2018-01-01 01:06:58 +09:00
Takeshi KOMIYA
50640b700b Fix #4070, #4111: crashes when the warning message contains format strings (again) 2017-10-05 00:00:48 +09:00
Takeshi KOMIYA
bfd71cd77b Fix #3926: Add `autodoc_warningiserror to suppress the behavior of -W` option 2017-07-15 22:04:56 +09:00
Andy Neebel
f68c108f10 Mark tests as xfail/skip to allow successful run 2017-06-14 13:27:31 -05:00
Takeshi KOMIYA
a8c5141cc1 Update testcase for #3858 2017-06-10 12:05:18 +09:00
shimizukawa
d497d74370 refs #3458: add sphinx.testing that are moved from /tests directory. 2017-05-14 20:47:15 +09:00
Takeshi KOMIYA
8f9dd64992 Merge branch 'stable' 2017-03-26 11:52:15 +09:00
Takeshi KOMIYA
c57e47e042 Year++ 2017-03-26 11:49:34 +09:00
Takeshi KOMIYA
ae24524d5f Drop debug2() (refs: #3304) 2017-01-07 15:03:16 +09:00
shimizukawa
402a11aeba pytest: remove deprecated test util functions 2017-01-07 02:17:58 +09:00
Takeshi KOMIYA
15b46598e2 logger.warning() supports node as location parameter 2017-01-02 12:59:51 +09:00
Takeshi KOMIYA
e755a8c004 Use loggers 2017-01-02 12:59:51 +09:00
Takeshi KOMIYA
aa65a19466 Add sphinx.util.logging.SafeEncodingWriter 2017-01-02 12:59:50 +09:00
Takeshi KOMIYA
ad871e5a48 Add sphinx.util.logging.pending_warnings() 2017-01-02 12:59:50 +09:00
Takeshi KOMIYA
d8ad3d063c sphinx.util.parallel supports logging in child workers 2017-01-02 12:59:50 +09:00
Takeshi KOMIYA
70d6a560f2 sphinx.util.logging supports colorized log 2017-01-02 12:59:50 +09:00
Takeshi KOMIYA
7358512f11 logging.info() supports verbosity filter by app.verbosity 2017-01-02 12:59:50 +09:00
Takeshi KOMIYA
284ace16bf Now sphinx.util.logging supports info and other logs 2017-01-02 12:59:50 +09:00
Takeshi KOMIYA
3698fe2b0f Add testcase for sphinx.util.logging 2017-01-02 12:59:50 +09:00
Takeshi KOMIYA
ae9d786390 Add :confval:suppress_warnings to supress arbitrary warning message 2016-02-23 12:23:06 +09:00