Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5flakes
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
erp5flakes
Commits
51e729e4
Commit
51e729e4
authored
Jun 19, 2017
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
document how it works
and use .rst extension for README
parent
e3c770b3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
9 deletions
+39
-9
README.rst
README.rst
+38
-0
README.txt
README.txt
+0
-8
setup.py
setup.py
+1
-1
No files found.
README.rst
0 → 100644
View file @
51e729e4
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
README.txt
deleted
100644 → 0
View file @
e3c770b3
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.
To use it, simply invoke erp5flakes with the path to products or business
templates you want to check.
setup.py
View file @
51e729e4
...
...
@@ -10,7 +10,7 @@ setup(
author_email
=
"jerome@nexedi.com"
,
description
=
"A wrapper around pyflakes for ERP5 Products and Business Templates"
,
long_description
=
file
(
'README.
tx
t'
).
read
(),
long_description
=
file
(
'README.
rs
t'
).
read
(),
license
=
"GPL 2"
,
keywords
=
"erp5 zope2 pyflakes"
,
url
=
'https://svn.erp5.org/repos/public/erp5/trunk/utils/%s'
%
name
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment