This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A wrapper around pyflakes for ERP5 Products and Business Templates

Project Description

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:

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:

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:

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

Release History

This version
History Node

0.5

History Node

0.4

History Node

0.2

History Node

0.1

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting