Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
argo
nrm
Commits
c61e07ff
Commit
c61e07ff
authored
Jul 03, 2018
by
Swann Perarnau
Browse files
Merge branch 'style-ci' into 'master'
Add style checks to CI See merge request
!16
parents
b0594527
de108bd0
Pipeline
#3626
canceled with stages
Changes
5
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
c61e07ff
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
Pipfile
View file @
c61e07ff
...
...
@@ -8,6 +8,7 @@ name = "pypi"
[dev-packages]
pytest
=
"*"
"flake8"
=
"*"
[requires]
python_version
=
"2.7"
nrm/aci.py
View file @
c61e07ff
...
...
@@ -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."""
...
...
nrm/controller.py
View file @
c61e07ff
...
...
@@ -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
):
...
...
setup.cfg
View file @
c61e07ff
[flake8]
exclude = .git, doc, nrm/coolr
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