Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

Beta warning when README.rst quotes python code #250

Closed
clonedagain opened this issue Sep 16, 2015 · 3 comments
Closed

Beta warning when README.rst quotes python code #250

clonedagain opened this issue Sep 16, 2015 · 3 comments
Assignees
Labels

Comments

@clonedagain
Copy link

I get the following warning in OCA/stock-logistics-warehouse#81:
stock_available_sale/__init__.py:1: [E7901(rst-syntax-error), ] RST file README.rst syntax error /home/travis/build/OCA/stock-logistics-warehouse/stock_available_sale/README.rst:16: (WARNING/2) Cannot analyze code. Pygments package not found.

I suppose that's because the RST contains the following code, which indicates the code-block can be interpreted in Python:

.. code-block:: python

    if line.product_id and line.product_id.type == 'product' and line.product_id.immediately_usable_qty > line.product_uom_qty:
        failed=True```
@clonedagain
Copy link
Author

@moylop260 for your information

@moylop260 moylop260 added the bug label Sep 17, 2015
@moylop260 moylop260 self-assigned this Sep 17, 2015
@moylop260
Copy link
Contributor

I got it
Thank you

moylop260 added a commit to moylop260/pylint-oca that referenced this issue Sep 17, 2015
@moylop260
Copy link
Contributor

Fixed!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants