Skip to content

Commit

Permalink
Re-format with black
Browse files Browse the repository at this point in the history
Fixes new black formatting errors.
  • Loading branch information
hluk committed Feb 15, 2023
1 parent 6bf24df commit 4cd4fb4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion reviewrot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ def get_arguments(cli_arguments, config):
command_line_args.get(argument) is None
or command_line_args.get(argument) is False
):

config_value = config_arguments.get(argument)
if is_valid_choice(argument, config_value):
parsed_arguments[argument] = config_value
Expand Down
1 change: 0 additions & 1 deletion reviewrot/gerritstack.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,6 @@ def format_response(self, decoded_responses, age, show_last_comment):
"""
res_ = []
for decoded_response in decoded_responses:

time_format = "%Y-%m-%d %H:%M:%S.%f"
created_date = datetime.strptime(
decoded_response["created"][:-3], time_format
Expand Down
2 changes: 0 additions & 2 deletions reviewrot/gitlabstack.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ def request_reviews(

# get merge requests for all projects for specified group
for group_project in group_projects:

project = gl.projects.get(group_project.id)
res = self.get_reviews(
uname=user_name,
Expand Down Expand Up @@ -156,7 +155,6 @@ def get_reviews(self, uname, project, age=None, show_last_comment=None, image=No
log.debug("No open merge requests found for %s/%s ", uname, project.name)
res_ = []
for mr in merge_requests:

last_comment = self.get_last_comment(mr)

try:
Expand Down
7 changes: 7 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ commands =
reviewrot/ test/

[testenv:black]
skip_install = true
deps =
black
commands =
Expand All @@ -36,6 +37,12 @@ commands =
--diff \
reviewrot/ test/

[testenv:black-format]
skip_install = true
deps =
black
commands =
black reviewrot/ test/

[testenv:clean]
deps = coverage
Expand Down

0 comments on commit 4cd4fb4

Please sign in to comment.