summaryrefslogtreecommitdiff
path: root/sphinx/testing/path.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix various Ruff errorsAdam Turner2023-01-311-2/+4
|
* Run pyupgrade (#11070)Adam Turner2023-01-021-4/+4
|
* Use PEP 604 typesAdam Turner2023-01-011-2/+2
|
* Use PEP 595 typesAdam Turner2023-01-011-2/+2
|
* Insert ``from __future__ import annotations``Adam Turner2023-01-011-0/+2
|
* set up mypy for incremental adoption of 'strict optional'daniel.eades2022-07-261-2/+2
|
* Remove deprecated code for Sphinx 5.0Adam Turner2022-04-171-19/+0
|
* Remove copyright and licence fieldsAdam Turner2022-02-201-5/+0
|
* Fix module docstring indentationAdam Turner2022-02-201-2/+2
|
* Remove module titles in docstringsAdam Turner2022-02-191-3/+0
|
* address some unused loop control variables (B007)Daniel Eades2022-01-121-1/+1
|
* A happy new year!Takeshi KOMIYA2022-01-011-1/+1
|
* Merge pull request #8823 from tk0miya/8511_readonly_testingTakeshi KOMIYA2021-02-051-0/+21
|\ | | | | Support testing from read-only filesystems
| * test: change permissions of testfiles only $SPHINX_READONLY_TESTDIR setTakeshi KOMIYA2021-02-051-9/+10
| |
| * test: Apply umask to Path.copytree()Takeshi KOMIYA2021-02-051-2/+13
| |
| * Support testing from read-only filesystemsJeremy Maitin-Shepard2020-12-121-0/+9
| |
* | 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-2/+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.
* testing: Add Path.read_text() and Path.read_bytes()Takeshi KOMIYA2020-02-011-0/+19
| | | | | To migrate pathlib.Path in future, compatibile methods are needed for our Path class.
* A happy new year!Takeshi KOMIYA2020-01-011-1/+1
|
* mypy: Enable disallow_incomplete_defs flag for type checkingTakeshi KOMIYA2019-12-301-4/+4
|
* Migrate to py3 style type annotation: sphinx.testing.pathTakeshi KOMIYA2019-07-061-55/+28
|
* Merge branch '1.8'Takeshi KOMIYA2019-01-021-1/+1
|\
| * A happy new year!Takeshi KOMIYA2019-01-021-1/+1
| |
* | Replace use of six.text_type with strJon Dufresne2018-12-181-4/+2
| | | | | | | | | | This removes the last use of the six package allowing Sphinx to remove it as a dependency.
* | 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.
* | Remove unnecessary bytes type check from path.write_text()Jon Dufresne2018-12-151-2/+0
| | | | | | | | | | All code passes type str to the method. Per the type signature, only str is allowed.
* | Replace all "unicode" type by "str"Takeshi KOMIYA2018-12-151-8/+7
| |
* | Move to py3 mode for mypy (and remove many "type: ignore" comments)Takeshi KOMIYA2018-12-151-3/+3
| |
* | Simplify open() call by removing default modeJon Dufresne2018-12-111-1/+1
| | | | | | | | | | | | | | | | | | The open() function opens files in read-only text mode by default. Drop the mode argument to be slightly simpler and more idiomatic. https://docs.python.org/3/library/functions.html#open > The default mode is 'r' (open for reading text, synonym of 'rt').
* | Fix annotations (minor fixes)Takeshi KOMIYA2018-12-031-1/+2
| |
* | Add sphinx.util.typing:unicode to help mypy-3 migrationTakeshi KOMIYA2018-11-241-0/+1
| |
* | Simplify ensuredir() with Python3 stdlib featuresJon Dufresne2018-11-201-3/+3
| | | | | | | | | | | | | | | | | | - Simplify ensuredir() to equivalent os.makedir(name, exist_ok=True) - Do not check if a directory exists before calling ensuredir() (ensuredir() already handles it) - Add exist_ok argument to path.makedirs() to follow same pattern - Drop unnecessary .exists() check immediately before .isdir() - Add tests for ensuredir
* | Merge branch 'master' into openTakeshi KOMIYA2018-09-221-10/+2
|\ \
| * | refactoring: Drop PY2 and PY3 flagsTakeshi KOMIYA2018-09-221-10/+2
| |/
| * Fix mypy violationsTakeshi KOMIYA2018-09-181-1/+1
| |
* | Prefer builtin open() over io.open() and codecs.open()Jon Dufresne2018-09-111-3/+2
|/ | | | | | | | | | | | In Python3, the functions io.open() is an alias of the builtin open() and codecs.open() is functionally equivalent. To reduce indirection, number of imports, and number of patterns, always prefer the builtin. https://docs.python.org/3/library/io.html#high-level-module-interface > io.open() > > This is an alias for the builtin open() function.
* Fix mypy violationsTakeshi KOMIYA2018-07-151-1/+1
|
* Drop typing.TYPE_CHECKINGTakeshi KOMIYA2018-03-261-2/+2
|
* Use typing.TYPE_CHECKINGTakeshi KOMIYA2018-02-191-2/+2
|
* Update type annotationsTakeshi KOMIYA2018-02-041-2/+32
|
* Use flake8-import-orderTakeshi KOMIYA2018-01-281-1/+1
|
* A happy new year!Takeshi KOMIYA2018-01-011-1/+1
|
* refs #3458: add sphinx.testing that are moved from /tests directory.shimizukawa2017-05-141-0/+206