Skip to content

Commit 792dd94

Browse files
committed
Add flake to dev requirements
1 parent 674596a commit 792dd94

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ python:
44
before_install:
55
- sudo apt-get update -qq
66
- pip install . --process-dependency-links
7-
- pip install -r python/dev-requirements.txt
7+
- pip install -r dev-requirements.txt
88
script:
99
- flake8 wes_service wes_client
1010
deploy:

dev-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
flake8

wes_client/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,20 +59,20 @@ def main(argv=sys.argv[1:]):
5959
http_client=http_client, config={'use_models': False})
6060

6161
if args.list:
62-
l = client.WorkflowExecutionService.ListWorkflows()
63-
json.dump(l.result(), sys.stdout, indent=4)
62+
response = client.WorkflowExecutionService.ListWorkflows()
63+
json.dump(response.result(), sys.stdout, indent=4)
6464
return 0
6565

6666
if args.log:
67-
l = client.WorkflowExecutionService.GetWorkflowLog(
67+
response = client.WorkflowExecutionService.GetWorkflowLog(
6868
workflow_id=args.log)
69-
sys.stdout.write(l.result()["workflow_log"]["stderr"])
69+
sys.stdout.write(response.result()["workflow_log"]["stderr"])
7070
return 0
7171

7272
if args.get:
73-
l = client.WorkflowExecutionService.GetWorkflowLog(
73+
response = client.WorkflowExecutionService.GetWorkflowLog(
7474
workflow_id=args.get)
75-
json.dump(l.result(), sys.stdout, indent=4)
75+
json.dump(response.result(), sys.stdout, indent=4)
7676
return 0
7777

7878
with open(args.job_order) as f:

wes_service/util.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ def getopt(self, p, default=None):
2222
return default
2323

2424
def getoptlist(self, p):
25-
l = []
25+
optlist = []
2626
for k, v in self.pairs:
2727
if k == p:
28-
l.append(v)
29-
return l
28+
optlist.append(v)
29+
return optlist

0 commit comments

Comments
 (0)