summaryrefslogtreecommitdiff
path: root/sphinx/util/console.py
Commit message (Collapse)AuthorAgeFilesLines
* Expand the mypy whitelist for 'sphinx.util' (#11406)danieleades2023-05-121-1/+1
|
* Use PEP 595 typesAdam Turner2023-01-011-3/+2
|
* Insert ``from __future__ import annotations``Adam Turner2023-01-011-0/+2
|
* Fix `get_terminal_width` on Windows (#10842)Steffen Rehberg2022-09-201-15/+3
| | | | `shutil.get_terminal_size` works as a drop-in replacement for `get_terminal_width`, enabling accurate widths on Windows.
* Increase static typing strictness (#10530)Adam Turner2022-06-161-1/+4
|
* Merge pull request #10260 from hugovk/colour-env-varsTakeshi KOMIYA2022-03-171-0/+4
|\ | | | | Enable FORCE_COLOR and NO_COLOR for terminal colouring
| * Enable FORCE_COLOR and NO_COLOR for terminal colouringHugo van Kemenade2022-03-121-0/+4
| |
* | Collapse single line docstringsAdam Turner2022-02-201-2/+1
| |
* | Remove copyright and licence fieldsAdam Turner2022-02-201-3/+0
| |
* | Fix module docstring indentationAdam Turner2022-02-201-2/+2
| |
* | Fix module docstring first lineAdam Turner2022-02-201-2/+1
| |
* | Remove module titles in docstringsAdam Turner2022-02-191-3/+0
|/
* A happy new year!Takeshi KOMIYA2022-01-011-1/+1
|
* Improve sphinx.util.console docstringLouis Maddox2021-07-181-1/+1
|
* refactor: Use PEP-526 based variable annotation (sphinx.util)Takeshi KOMIYA2021-03-101-4/+4
|
* A happy new year!Takeshi KOMIYA2021-01-011-1/+1
| | | | | | | .. 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
* Sort imports with isortFrançois Freitag2020-11-111-1/+1
| | | | | | | | | | | | Keep imports alphabetically sorted and their order homogeneous across Python source files. The isort project has more feature and is more active than the flake8-import-order plugin. Most issues caught were simply import ordering from the same module. Where imports were purposefully placed out of order, tag with isort:skip.
* Fix mypy violations (with mypy-0.780)Takeshi KOMIYA2020-06-031-2/+1
|
* Merge pull request #7289 from blueyed/fix-light-colorsTakeshi KOMIYA2020-03-151-3/+3
|\ | | | | console: use bright colors instead of bold
| * Use bright colors instead of boldDaniel Hahler2020-03-101-3/+3
| | | | | | | | | | | | | | | | | | | | The code apparently comes from pygments where it was fixed to use aixterm colors (SGR color codes 90-97m) for bright colors instead of bold. Ref: https://github.com/kovidgoyal/kitty/issues/197#issuecomment-348062665 Ref: https://github.com/pygments/pygments/commit/433b39cc Ref: https://github.com/pygments/pygments/issues/1184
* | Fix mypy violations (with mypy-0.770)Takeshi KOMIYA2020-03-121-1/+1
|/
* A happy new year!Takeshi KOMIYA2020-01-011-1/+1
|
* Migrate to py3 style type annotation: sphinx.util.consoleTakeshi KOMIYA2019-06-031-25/+12
|
* refactor: Move terminal_safe() to sphinx.util.consoleTakeshi KOMIYA2019-02-111-0/+6
|
* Merge branch '1.8'Takeshi KOMIYA2019-01-021-1/+1
|\
| * A happy new year!Takeshi KOMIYA2019-01-021-1/+1
| |
* | Remove unnecessary encoding cookie from Python source filesJon Dufresne2018-12-161-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Replace all "unicode" type by "str"Takeshi KOMIYA2018-12-151-3/+2
| |
* | Add sphinx.util.typing:unicode to help mypy-3 migrationTakeshi KOMIYA2018-11-241-0/+1
|/
* Fix #5036: quickstart: Typing Ctrl-U clears the whole of lineTakeshi KOMIYA2018-06-111-3/+15
|
* Revert "Use typing.TYPE_CHECKING for typehints"Takeshi KOMIYA2018-03-131-3/+2
| | | | This reverts commit a073e17537c2aacaac305feadea58d4473ec97f4.
* Use typing.TYPE_CHECKING for typehintsTakeshi KOMIYA2018-02-141-2/+3
|
* Use flake8-import-orderTakeshi KOMIYA2018-01-281-1/+1
|
* A happy new year!Takeshi KOMIYA2018-01-011-1/+1
|
* Merge branch 'stable'Takeshi KOMIYA2017-03-261-1/+1
|\
| * Year++Takeshi KOMIYA2017-03-261-1/+1
| |
* | Upgrade to mypy-0.5Takeshi KOMIYA2017-03-031-0/+5
| |
* | Fix mypy violationsTakeshi KOMIYA2017-02-081-0/+1
| |
* | Merge branch 'stable'Takeshi KOMIYA2017-01-121-2/+2
|\ \ | |/
| * Fix flake8 violationsTakeshi KOMIYA2017-01-121-2/+2
| |
* | Sphinx.status_iterator() is now deprecatedTakeshi KOMIYA2017-01-071-1/+1
| |
* | Adjust code to type annotationTakeshi KOMIYA2016-12-031-1/+1
| |
* | Add type-check annotations to sphinx.utilTakeshi KOMIYA2016-11-161-1/+9
|/
* insert blank line(s) to adapt latest flake8/pycodestyleshimizukawa2016-11-161-0/+1
|
* Merge branch 'stable'Georg Brandl2016-01-141-1/+1
|\
| * Obligatory copyright update.Georg Brandl2016-01-141-1/+1
| |
* | fix some over-broad except: clausesGeorg Brandl2015-05-181-3/+1
|/
* util: pep8 fixesGeorg Brandl2015-03-081-0/+8
|
* enables flake8 E401: multiple imports on one lineshimizukawa2015-03-071-1/+3
|
* Merge branch 'stable'Georg Brandl2015-01-031-1/+1
|\