Skip to content

Commit bfd02a1

Browse files
authored
Merge pull request #255 from Borda/precommit/rst
precommit: use Sphinx Lint check
2 parents 7ad2d51 + e4f12c0 commit bfd02a1

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,8 @@ repos:
3131
hooks:
3232
- id: pyupgrade
3333
args: [--py38-plus]
34-
- repo: local
34+
- repo: https://github.com/sphinx-contrib/sphinx-lint
35+
rev: v0.9.1
3536
hooks:
36-
- id: rst
37-
name: rst
38-
entry: rst-lint --encoding utf-8
39-
files: ^(CHANGES.rst|README.rst)$
40-
language: python
41-
additional_dependencies: [pygments, restructuredtext_lint]
37+
- id: sphinx-lint
38+
args: [--enable=default-role]

CHANGES.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Bug fixes
9090
Features
9191
++++++++
9292

93-
- Expose `reruns` and `reruns_delay` through `pytest.ini` file.
93+
- Expose ``reruns`` and ``reruns_delay`` through ``pytest.ini`` file.
9494

9595

9696
11.0 (2023-01-12)
@@ -114,7 +114,7 @@ Bug fixes
114114
Features
115115
++++++++
116116

117-
- Added option `--rerun-except` to rerun failed tests those are other than the mentioned Error.
117+
- Added option ``--rerun-except`` to rerun failed tests those are other than the mentioned Error.
118118

119119
- Add support for Python 3.11.
120120

@@ -319,7 +319,7 @@ Bug fixes
319319

320320
- Add support for Python 3.7.
321321

322-
- Fix issue can occur when used together with `pytest-flake8`
322+
- Fix issue can occur when used together with ``pytest-flake8``
323323
(`#73 <https://github.com/pytest-dev/pytest-rerunfailures/issues/73>`_)
324324

325325

@@ -414,7 +414,7 @@ Bug fixes
414414
1.0.2 (2016-03-29)
415415
------------------
416416

417-
- Add support for `--resultlog` option by parsing reruns accordingly. (#28)
417+
- Add support for ``--resultlog`` option by parsing reruns accordingly. (#28)
418418

419419

420420
1.0.1 (2016-02-02)

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Recover from hard crashes
4545

4646
If one or more tests trigger a hard crash (for example: segfault), this plugin
4747
will ordinarily be unable to rerun the test. However, if a compatible version of
48-
pytest-xdist is installed, and the tests are run within pytest-xdist using the `-n`
48+
pytest-xdist is installed, and the tests are run within pytest-xdist using the ``-n``
4949
flag, this plugin will be able to rerun crashed tests, assuming the workers and
5050
controller are on the same LAN (this assumption is valid for almost all cases
5151
because most of the time the workers and controller are on the same computer).

0 commit comments

Comments
 (0)