hacking is not capped in g-r and it is in
blacklist for requirement as hacking new version
can break the gate jobs.
Hacking can break gate jobs because of various
reasons:
- There might be new rule addition in hacking
- Some rules becomes default from non-default
- Updates in pycodestyle etc
That was the main reason it was not added in g-r
auto sync also. Most of the project maintained the
compatible and cap the hacking version in
test-requirements.txt and update to new version when
project is ready. Bumping new version might need code
fix also on project side depends on what new in that
version.
If project does not have cap the hacking version then,
there is possibility of gate failure whenever new hacking
version is released by QA team.
Example of such failure in recent release of hacking 1.1.0
- http://lists.openstack.org/pipermail/openstack-dev/2018-May/130282.html
Change-Id: I4172dd0c905760dd84e5ff60d3fa052aae794edf
Update the cap on flake8 to support newer versions that work with
python3.
Update tox settings for pep8 environment to use python 3.
Ignore the error caused by not having 2 blank lines before functions and
classes.
Fix 2 syntax errors in function definitions.
Change-Id: I4da79ceefcbf1c23d217716f7b25ac6a092794ff
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit introduces 3 examples of LDPs that process
monasca metrics:
* `Aggregate` - compute simple stats per metric name.
* `Combine` - allow mixing of different metrics by providing
a simple expression parser that gets transformed into
CPython bytecode.
* `Derivative` - compute a metric derivative.
While quite simple, those examples, will help us improve the
framework by emphazing some of the problems we will face when
working on more complex solution such as:
* Spark's inability to share data between sliding windows.
* Ordering of data.
* Sampling of metrics / events.
Change-Id: I259022f20e9b288aa2a08c24ad4a5f41a20e6095
This patch provides tox support.
Note:
Basically flake8 section follows monasca-api's ignore rule
except H404.
H405: multi line docstring summary not separated with an empty line
Change-Id: Iac8d5516a66226a7b3fface95059c5e238e8cb72