Commit c61e07ff authored by Swann Perarnau's avatar Swann Perarnau

Merge branch 'style-ci' into 'master'

Add style checks to CI

See merge request !16
parents b0594527 de108bd0
Pipeline #3626 canceled with stages
stages:
- test
- style
py.test:
stage: test
script:
- pipenv install --dev
- pipenv run py.test
flake8:
stage: style
script:
- pipenv install --dev
- pipenv run flake8
......@@ -8,6 +8,7 @@ name = "pypi"
[dev-packages]
pytest = "*"
"flake8" = "*"
[requires]
python_version = "2.7"
......@@ -125,6 +125,7 @@ class Container(SpecField):
"""Load container information."""
return super(Container, self).load(data)
class PerfWrapper(SpecField):
"""Information on whether to use perf for a container."""
......@@ -147,6 +148,7 @@ class PerfWrapper(SpecField):
return False
return True
class IsolatorList(SpecField):
"""Represent the list of isolator in a Manifest."""
......
......@@ -74,7 +74,8 @@ class PowerActuator(object):
return actions
def execute(self, action):
logger.info("changing power limit: %r, %r", action.command, action.delta)
logger.info("changing power limit: %r, %r", action.command,
action.delta)
self.sensor_manager.set_powerlimit(action.target, action.command)
def update(self, action):
......
[flake8]
exclude = .git, doc, nrm/coolr
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