Commit ff42ecfd authored by Valentin Reis's avatar Valentin Reis Committed by Valentin Reis

[style] adds flake8 tests to /bin.

parent efb632bd
Pipeline #5889 passed with stages
in 4 minutes and 10 seconds
......@@ -28,6 +28,6 @@ py.test:
flake8:
stage: style
script:
- nix run -f "$ARGOPKGS" pythonPackages.flake8 --command flake8
- nix run -f "$ARGOPKGS" pythonPackages.flake8 --command flake8 nrm/* bin/*
tags:
- integration
......@@ -44,8 +44,8 @@ class PerfWrapper(object):
update = {'api': 'down_event',
'type': 'performance',
'payload': performance,
'container_uuid' : self.container_uuid,
'application_uuid' : self.app_uuid,
'container_uuid': self.container_uuid,
'application_uuid': self.app_uuid,
}
msg = PUB_MSG['performance'](**update)
self.downstream_event.sendmsg(msg)
......
......@@ -261,8 +261,8 @@ class CommandLineInterface(object):
help="container uuid to listen for",
default=None)
parser_listen.add_argument("-f", "--filter",
help="type of message to filter and \
\ prettyprint, in {power,performance}",
help="type of message to filter and"
" prettyprint, in {power,performance}",
default=None)
parser_listen.set_defaults(func=self.do_listen)
......
{
pkgs ? import <argopkgs> {nrm-src=./.;},
}:
rec {
nrm = pkgs.nrm;
hack = nrm.overrideAttrs (old:{
buildInputs = old.buildInputs ++ [pkgs.pythonPackages.flake8];
});
}
(import ./default.nix {}).hack
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment