Fix linter ci job

pull/511/head
Michael Käufl 3 years ago
parent cec4f3383a
commit b02f90deca
No known key found for this signature in database
GPG Key ID: 30274591B981122A

@ -20,9 +20,11 @@ jobs:
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with:
python-version: '3.11'
- run: - run:
python -m pip install flake8 flake8-import-order doc8 sphinx python -m pip install --upgrade flake8 flake8-import-order
rstcheck[sphinx] doc8 sphinx rstcheck[sphinx]
- run: python -m pip install . - run: python -m pip install .
- run: flake8 . - run: flake8 .
- run: doc8 $(git ls-files '*.rst') - run: doc8 $(git ls-files '*.rst')

@ -117,7 +117,7 @@ post-template processing).
Example of a Jinja2 code that cannot be parsed as YAML because it contains Example of a Jinja2 code that cannot be parsed as YAML because it contains
invalid tokens ``{%`` and ``%}``: invalid tokens ``{%`` and ``%}``:
.. code-block:: yaml .. code-block:: text
# This file IS NOT valid YAML and will procuce syntax errors # This file IS NOT valid YAML and will procuce syntax errors
{% if extra_info %} {% if extra_info %}

Loading…
Cancel
Save