Adam Turner
9ced736316
Fix highlighting lexers
...
- Ensure `pycon3` is always normalised to `pycon`
2022-09-25 00:10:59 +01:00
danieleades
25d379fb53
Lint with flake8-bugbear
( #10602 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2022-07-12 22:55:57 +01:00
Adam Turner
5775912455
Collapse single line docstrings
2022-02-20 03:13:45 +00:00
Adam Turner
6bb7b891a1
Remove copyright and licence fields
2022-02-20 03:06:23 +00:00
Adam Turner
5694e0ce60
Fix module docstring indentation
2022-02-20 00:35:13 +00:00
Adam Turner
4f5a3269a6
Fix module docstring first line
2022-02-20 00:11:08 +00:00
Adam Turner
6b8bccec59
Remove module titles in docstrings
2022-02-19 23:17:29 +00:00
Takeshi KOMIYA
05a898ecb4
Migrate to Node.findall() from Node.traverse()
...
Node.traverse() was marked as deprecated since docutils-0.18. Instead
of it, Node.findall() has been added as successor of traverse().
This applies a patch to docutils-0.17 or older to be available
Node.findall() and use it.
2022-01-03 00:35:29 +09:00
Takeshi KOMIYA
b84771dcd2
A happy new year!
2022-01-01 18:45:03 +09: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
François Freitag
0949735210
Sort imports with isort
...
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.
2020-11-11 13:19:05 +01:00
Takeshi KOMIYA
eaf495c3c4
A happy new year!
2020-01-01 14:27:43 +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
d6d4406ce9
Fix #5770 : doctest: Follow highlight_language on highlighting doctest block
2018-12-15 18:35:12 +09:00
Takeshi KOMIYA
3a2418a827
refactoring: Drop PY2 and PY3 flags
2018-09-22 21:27:59 +09:00
Antti Kaihola
098f37fddf
Ref #5273 : doctest: add test for skipif calling global setup/cleanup
...
Ensure that `doctest_global_setup` and `doctest_global_cleanup` are executed
before and after evaluating each `:skipif:` option.
2018-08-16 17:56:29 +03:00
Antti Kaihola
9185c2c356
Ref #5273 : doctest: add tests for the :skipif: option
2018-08-16 13:22:59 +03:00
Takeshi KOMIYA
f969edfaa8
Fix flake8 violations on tests
2018-07-28 20:19:30 +09:00
Takeshi KOMIYA
d8f4e47fc8
Fix broken testcase caused by path separator
2018-05-02 02:13:00 +09:00
Takeshi KOMIYA
f7027049b1
Fix flake8 violations
2018-02-19 23:20:56 +09:00
Zac-HD
b62628f678
Avoid misreporting line number
2018-02-09 11:05:26 +11:00
Zac-HD
68bccb01ac
Get correct filename for each doctest block
...
This is complicated because doctests may be included from other files,
eg. dosctrings in a Python module.
2018-02-09 11:05:25 +11:00
Zac-HD
973f2680d6
Add ext.autodoc + ext.doctest test root
2018-02-09 10:39:25 +11:00
Takeshi KOMIYA
7ba54500fc
Fix #4183 : doctest: `:pyversion:
` option also follows PEP-440 specification
2018-01-08 11:59:50 +09:00
Takeshi KOMIYA
2426cedb8b
A happy new year!
2018-01-01 01:06:58 +09:00
Takeshi KOMIYA
c4e364ee63
Rename tests directory; roots/test-doctest -> roots/test-ext-doctest
2017-11-02 00:03:29 +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
Marco Buttu
e7166bbc08
Removed useless import
2017-01-15 21:13:34 +01:00
Marco Buttu
44732c6aea
compare_version() replaces proper_pyversion()
2017-01-15 21:07:44 +01:00
Marco Buttu
960f889a2c
Added pyversion option for doctest (issue 3303)
...
Code, tests and documentation.
2017-01-15 10:27:34 +01:00
Marco Buttu
19298dec33
Added pyversion option for doctest (issue 3303)
2017-01-14 18:57:19 +01:00
shimizukawa
baaef9146d
pytest: remove deprecated with_app decorator functions
2017-01-06 01:14:47 +09:00
Georg Brandl
46d7e8558e
Obligatory copyright update.
2016-01-14 22:54:04 +01:00
Georg Brandl
a23903d8d5
Merge branch 'stable'
2015-01-03 21:41:14 +01:00
Georg Brandl
a73ab32bc5
Split viewcode and linkcode tests out of main test root.
2014-09-21 17:34:16 +02:00
Georg Brandl
d47a7587f9
Complete test suite overhaul.
...
* rename a few test modules to make the names more consistent
* do not copy/use Sphinx from build/ (unnecessary without 2to3)
* use a temporary dir for *all* test projects, the source tree
will stay pristine that way (default is tests/build)
* speed up tests by ~3x by splitting up test projects and avoiding
rebuilds
2014-09-21 17:17:02 +02:00