Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
main
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Simone Rossi
main
Commits
4006c3ad
Commit
4006c3ad
authored
Jan 10, 2017
by
Daniele Venzano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Temporarily disable a buggy pylint check
parent
d777fb53
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
.pylintrc
.pylintrc
+1
-1
run_tests.sh
run_tests.sh
+5
-0
zoe_lib/swarm_client.py
zoe_lib/swarm_client.py
+2
-3
No files found.
.pylintrc
View file @
4006c3ad
...
...
@@ -47,7 +47,7 @@ confidence=
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use"--disable=all --enable=classes
# --disable=W"
disable=line-too-long,logging-format-interpolation,too-few-public-methods,too-many-instance-attributes,fixme,too-many-branches,file-ignored,global-statement,redefined-variable-type,no-self-use,too-many-statements,locally-disabled,arguments-differ,unnecessary-lambda
disable=line-too-long,logging-format-interpolation,too-few-public-methods,too-many-instance-attributes,fixme,too-many-branches,file-ignored,global-statement,redefined-variable-type,no-self-use,too-many-statements,locally-disabled,arguments-differ,unnecessary-lambda
,invalid-sequence-index
[REPORTS]
...
...
run_tests.sh
0 → 100644
View file @
4006c3ad
#!/usr/bin/env bash
pylint
*
.py zoe_
*
doc8 docs/
zoe_lib/swarm_client.py
View file @
4006c3ad
...
...
@@ -46,7 +46,7 @@ class DockerContainerOptions:
self
.
volume_binds
=
[]
self
.
volumes
=
[]
self
.
command
=
""
self
.
memory_limit
=
'2g'
self
.
memory_limit
=
2
*
(
1024
**
3
)
self
.
name
=
''
self
.
ports
=
[]
self
.
network_name
=
'bridge'
...
...
@@ -81,7 +81,7 @@ class DockerContainerOptions:
"""Get the volumes in another Docker format."""
return
self
.
volume_binds
def
set_command
(
self
,
cmd
)
->
str
:
def
set_command
(
self
,
cmd
):
"""Setter for the command to run in the container."""
self
.
command
=
cmd
...
...
@@ -400,4 +400,3 @@ class SwarmClient:
return
self
.
cli
.
logs
(
docker_id
,
stdout
=
True
,
stderr
=
True
,
follow
=
follow
,
stream
=
stream
,
timestamps
=
True
)
except
docker
.
errors
.
NullResource
:
return
None
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