Skip to main content

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 notifications | RSS feed

This release

0.5 This release

0.4

1 file

0.2

2 files

0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page