Skip to content

Commit

Permalink
Ignore some E402 & E501 in pr/ & github/
Browse files Browse the repository at this point in the history
  • Loading branch information
kagami-l committed May 19, 2024
1 parent 62bbd1a commit 71a8def
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 11 deletions.
8 changes: 4 additions & 4 deletions merico/github/code_task_summary/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))

from common_util import assert_exit, ui_edit # noqa: E402
from git_api import (
from git_api import ( # noqa: E402
check_git_installed,
get_current_branch,
get_github_repo,
Expand All @@ -25,9 +25,9 @@ def extract_issue_id(branch_name):

# Function to generate a random branch name
PROMPT = (
"You are a coding engineer, required to summarize the ISSUE description into a coding task description of no more than 50 words. \n"
"The ISSUE description is as follows: {issue_body}, please summarize the corresponding coding task description.\n"
'The coding task description should be output in JSON format, in the form of: {{"summary": "code task summary"}}\n'
"You are a coding engineer, required to summarize the ISSUE description into a coding task description of no more than 50 words. \n" # noqa: E501
"The ISSUE description is as follows: {issue_body}, please summarize the corresponding coding task description.\n" # noqa: E501
'The coding task description should be output in JSON format, in the form of: {{"summary": "code task summary"}}\n' # noqa: E501
)


Expand Down
2 changes: 1 addition & 1 deletion merico/github/new_issue/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"Based on the following description, "
"suggest a title and a detailed body for a GitHub issue:\n\n"
"Description: {description}\n\n"
'Output as valid JSON format: {{"title": "<title>", "body": "<body> use \\n as new line flag."}} '
'Output as valid JSON format: {{"title": "<title>", "body": "<body> use \\n as new line flag."}} ' # noqa: E501
)


Expand Down
3 changes: 1 addition & 2 deletions merico/github/new_issue/from_task/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@

sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", ".."))

# noqa: E402
from common_util import assert_exit, editor, ui_edit # noqa: E402
from devchat.llm import chat_json # noqa: E402
from git_api import (
from git_api import ( # noqa: E402
create_issue,
get_issue_info_by_url,
parse_sub_tasks,
Expand Down
2 changes: 1 addition & 1 deletion merico/github/new_pr/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from common_util import assert_exit, ui_edit # noqa: E402
from devchat.llm import chat_json # noqa: E402
from git_api import (
from git_api import ( # noqa: E402
auto_push,
create_pull_request,
get_commit_messages,
Expand Down
6 changes: 3 additions & 3 deletions merico/github/update_pr/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@


from common_util import assert_exit, ui_edit # noqa: E402
from devchat.llm import (
chat_json, # noqa: E402
from devchat.llm import ( # noqa: E402
chat_json,
)
from git_api import (
from git_api import ( # noqa: E402
auto_push,
get_commit_messages,
get_current_branch,
Expand Down
1 change: 1 addition & 0 deletions merico/pr/command.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
/pr.describe https://github.com/devchat-ai/devchat-vscode/pull/25
"""
# ruff: noqa: E402

import logging
import os
Expand Down
1 change: 1 addition & 0 deletions merico/pr/custom_suggestions_config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# ruff: noqa: E501
import json
import os
import sys
Expand Down

0 comments on commit 71a8def

Please sign in to comment.