Skip to content

Commit

Permalink
Fix issues found using deepsource.io
Browse files Browse the repository at this point in the history
Signed-off-by: Venu Vardhan Reddy Tekula <[email protected]>
  • Loading branch information
vchrombie committed Jul 8, 2021
1 parent 2712a0e commit 0eb784b
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions gareth/gareth.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
#


"""
Tool to manage the developer installation of GrimoireLab.
"""
"""Tool to manage the developer installation of GrimoireLab."""

import os
import subprocess
Expand Down Expand Up @@ -65,7 +63,7 @@ def source_prompt():
return prompt_msg


def validate_source(ctx, param, value):
def validate_source(ctx, value):
"""Check source option"""
click.echo()

Expand Down Expand Up @@ -103,9 +101,7 @@ def validate_source(ctx, param, value):
@click.option('--update', 'operation', flag_value='update',
help="Update the developer setup.")
def main(token, source, operation):
"""
Tool to manage the developer installation of GrimoireLab.
"""
"""Tool to manage the developer installation of GrimoireLab."""
if operation == 'create' and not token:
msg = "Token is required for creating the dev setup.\n"
msg += "Please provide the token using the '-t'/'--token' flag."
Expand Down Expand Up @@ -219,7 +215,7 @@ def update_dev_setup(source):
for repository in REPOS:
click.echo("{}...".format(repository))

org, repo = repository.split('/')
repo = repository.split('/')[-1]
dirpath = os.path.join(source_path, repo)

change_the_directory(dirpath)
Expand Down

0 comments on commit 0eb784b

Please sign in to comment.