Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarmet committed Mar 6, 2024
1 parent f019767 commit 66f00a3
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion bert_e/git_host/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,6 @@ def get_approvals(self) -> Iterable[str]:
def get_participants(self) -> Iterable[str]:
"""Get the usernames of the participants to this pull request."""


@abstractmethod
def comment_review(self):
"""Request changes on this pull request."""
Expand Down
1 change: 0 additions & 1 deletion bert_e/tests/test_bert_e.py
Original file line number Diff line number Diff line change
Expand Up @@ -4209,7 +4209,6 @@ def test_settings(self):
pr.id, options=['bypass_author_approval'], backtrace=True,
settings=settings)


def test_branches_have_diverged(self):
settings = DEFAULT_SETTINGS + 'max_commit_diff: 5'
pr = self.create_pr('feature/time-warp', 'development/10.0')
Expand Down
1 change: 0 additions & 1 deletion bert_e/tests/test_git_host.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ def test_pull_request_comments(self, workspace):
assert cmt1.text == 'First comment'
assert cmt2.text == 'Last comment'


def test_build_status(self, workspace):
pull_request = make_pull_request(workspace, 'test_build_status',
'master')
Expand Down
3 changes: 1 addition & 2 deletions bert_e/workflow/pr_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def _send_comment(settings, pull_request: AbstractPullRequest, msg: str,


def notify_user(settings, pull_request: AbstractPullRequest,
comment: exceptions.TemplateException):
comment: exceptions.TemplateException):
"""Notify user by sending a comment or a build status in a pull request."""
try:
send_bot_status(settings, pull_request, comment)
Expand All @@ -106,4 +106,3 @@ def send_bot_status(settings, pull_request: AbstractPullRequest,
title=comment.title,
summary=str(comment),
)

0 comments on commit 66f00a3

Please sign in to comment.