erp5flakes


Nameerp5flakes JSON
Version 0.5 PyPI version JSON
download
home_pagehttps://lab.nexedi.com/jerome/erp5flakes
SummaryA wrapper around pyflakes for ERP5 Products and Business Templates
upload_time
maintainerNone
docs_urlNone
authorJerome Perrin
requires_pythonNone
licenseGPL 2
keywords erp5 zope2 pyflakes
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            erp5flakes is a Wrapper around pyflakes to check ERP5 code for errors.

It can parse python code in products or python scripts in business
templates, in skin folders or workflow.

Install
-------

Install with pip:

.. code:: shell


    pip install -r requirements.txt

Run
---

To run, ``SOFTWARE_HOME`` environment variable must be set parts/erp5/
of the slapos software, then invoke erp5flakes with the paths of
business templates or products to check.

For example, to check all business templates from ERP5 repository inside
a webrunner with ERP5 SR installed:

.. code:: shell


    SOFTWARE_HOME=$(dirname ~/srv/runner/software/*/parts/erp5/product) erp5flakes ~/srv/runner/software/*/parts/erp5/bt5/* ~/srv/runner/software/*/parts/erp5/product/ERP5/bootstrap/*

Another example, to check ERP5Type and CMFActivity products code:

.. code:: shell


    SOFTWARE_HOME=$(dirname ~/srv/runner/software/*/parts/erp5/product) erp5flakes ~/srv/runner/software/*/parts/erp5/product/ERP5Type ~/srv/runner/software/*/parts/erp5/product/CMFActivity
            

Raw data

            {
    "_id": null,
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "cheesecake_code_kwalitee_id": null,
    "keywords": "erp5 zope2 pyflakes",
    "author": "Jerome Perrin",
    "home_page": "https://lab.nexedi.com/jerome/erp5flakes",
    "download_url": "UNKNOWN",
    "platform": "UNKNOWN",
    "version": "0.5",
    "cheesecake_documentation_id": null,
    "description": "erp5flakes is a Wrapper around pyflakes to check ERP5 code for errors.\n\nIt can parse python code in products or python scripts in business\ntemplates, in skin folders or workflow.\n\nInstall\n-------\n\nInstall with pip:\n\n.. code:: shell\n\n\n    pip install -r requirements.txt\n\nRun\n---\n\nTo run, ``SOFTWARE_HOME`` environment variable must be set parts/erp5/\nof the slapos software, then invoke erp5flakes with the paths of\nbusiness templates or products to check.\n\nFor example, to check all business templates from ERP5 repository inside\na webrunner with ERP5 SR installed:\n\n.. code:: shell\n\n\n    SOFTWARE_HOME=$(dirname ~/srv/runner/software/*/parts/erp5/product) erp5flakes ~/srv/runner/software/*/parts/erp5/bt5/* ~/srv/runner/software/*/parts/erp5/product/ERP5/bootstrap/*\n\nAnother example, to check ERP5Type and CMFActivity products code:\n\n.. code:: shell\n\n\n    SOFTWARE_HOME=$(dirname ~/srv/runner/software/*/parts/erp5/product) erp5flakes ~/srv/runner/software/*/parts/erp5/product/ERP5Type ~/srv/runner/software/*/parts/erp5/product/CMFActivity",
    "lcname": "erp5flakes",
    "name": "erp5flakes",
    "github": false,
    "bugtrack_url": null,
    "license": "GPL 2",
    "summary": "A wrapper around pyflakes for ERP5 Products and Business Templates",
    "split_keywords": [
        "erp5",
        "zope2",
        "pyflakes"
    ],
    "author_email": "jerome@nexedi.com",
    "urls": [],
    "cheesecake_installability_id": null
}
        
Elapsed time: 0.04708s