| 1 |
.. highlight:: console |
| 2 |
|
| 3 |
Migration-Guides |
| 4 |
================ |
| 5 |
|
| 6 |
Only breaking changes are mentioned here. New features or fixes are only mentioned if they |
| 7 |
somehow correspond to a breaking change. |
| 8 |
|
| 9 |
|
| 10 |
.. contents:: |
| 11 |
|
| 12 |
|
| 13 |
Version 5 to 6 |
| 14 |
-------------- |
| 15 |
|
| 16 |
With version 6 the whole code base was restructured. The core library was moved into its own |
| 17 |
repository at ``rstcheck/rstcheck-core``. |
| 18 |
|
| 19 |
``rstcheck`` moved from ``myint/rstcheck`` to ``rstcheck/rstcheck`` so you may want to update |
| 20 |
links you have pointing to the old repository's location. |
| 21 |
|
| 22 |
The ``master`` branch was renamed to ``main``. If you use git dependencies you may need to update |
| 23 |
your reference. |
| 24 |
|
| 25 |
The new logging system may help you find issues while migrating to v6. |
| 26 |
You may then want to turn it on on the lowest level ``--log-level DEBUG``. |
| 27 |
|
| 28 |
|
| 29 |
Configuration file |
| 30 |
~~~~~~~~~~~~~~~~~~ |
| 31 |
|
| 32 |
- CLI options now overwrite settings in configuration files. Update your setup accordingly. |
| 33 |
|
| 34 |
- The following configuration keys changed: |
| 35 |
|
| 36 |
- ``report`` renamed to ``report_level`` |
| 37 |
- ``ignore_language`` renamed to ``ignore_languages`` |
| 38 |
|
| 39 |
- Set the ``--warn-unknown-settings`` CLI flag for warnings on unknown settings in |
| 40 |
configuration files. |
| 41 |
|
| 42 |
- Numbers are no longer supported for ``report_level`` (old: ``report``) |
| 43 |
|
| 44 |
|
| 45 |
CLI |
| 46 |
~~~ |
| 47 |
|
| 48 |
- CLI options now overwrite settings in configuration files. Update your setup accordingly. |
| 49 |
|
| 50 |
- Non existing files are ignored, but a warning is logged and the exit code is non-zero. |
| 51 |
|
| 52 |
-The following CLI options changed: |
| 53 |
|
| 54 |
- ``--report`` renamed to ``--report-level`` and no longer accepts integers |
| 55 |
- ``--ignore-language`` renamed to ``--ignore-languages`` |
| 56 |
- ``--ignore`` dropped -> use ``--ignore-languages`` |
| 57 |
- ``--debug`` replaced with new ``--log-level`` -> use ``--log-level DEBUG`` for verbose output |
| 58 |
|
| 59 |
- Numbers are no longer supported for ``--report-level`` (old: ``--report``) |
| 60 |
|
| 61 |
- A non-existing path passed with ``--config`` results in a non-zero exit code. |
| 62 |
|
| 63 |
|
| 64 |
Sphinx features |
| 65 |
~~~~~~~~~~~~~~~ |
| 66 |
|
| 67 |
Support for sphinx prior version 2.0 was dropped. |
| 68 |
|
| 69 |
Hard-coded default values for roles and directives coming from ``sphinx`` were dropped. |
| 70 |
If you encounter a lot of unknown roles and directives this may be the reason |
| 71 |
(`Example issue`_). |
| 72 |
|
| 73 |
To fix this simply add sphinx to the environment from where you run ``rstcheck``:: |
| 74 |
|
| 75 |
$ pip install sphinx # directly |
| 76 |
|
| 77 |
$ pip install rstcheck[sphinx] # or via extra |
| 78 |
|
| 79 |
To check if sphinx support is activate run:: |
| 80 |
|
| 81 |
$ rstcheck --help | grep Sphinx |
| 82 |
|
| 83 |
|
| 84 |
Version 4 to 5 |
| 85 |
-------------- |
| 86 |
|
| 87 |
Nothing to do if you don't need the test suit of ``rstcheck``. |
| 88 |
|
| 89 |
Use ``tox`` to run test suite. |
| 90 |
|
| 91 |
|
| 92 |
Version 3 to 4 |
| 93 |
-------------- |
| 94 |
|
| 95 |
Use python 3.7 or newer to run ``rstcheck``. |
| 96 |
|
| 97 |
.. highlight:: default |
| 98 |
|
| 99 |
|
| 100 |
.. _Example issue: https://github.com/rstcheck/rstcheck/issues/109 |