Skip to content

Commit

Permalink
refactor: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
UniverseFly committed Oct 9, 2023
1 parent 8a1175c commit 27eb694
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/repilot/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from datetime import datetime
from pathlib import Path
from typing import Callable, TypeVar
from repilot.codegen import Codegen

from repilot.codegen import Codegen
from repilot.config import (
LMInferenceConfig,
MetaConfig,
Expand Down
4 changes: 1 addition & 3 deletions src/repilot/codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,7 @@ def init_analyzers() -> tuple[list[Connection], list[TextFile]]:
# Buggy text files
base_path = Path(self.proj_root).parent.absolute()
# proj_path = Path(self.proj_root).relative_to(base_path)
text_file = TextFile.read(
base_path, self.file_path.relative_to(base_path)
)
text_file = TextFile.read(base_path, self.file_path.relative_to(base_path))
buggy_text_files = [text_file]

# Initialize each buggy file for LSP
Expand Down

0 comments on commit 27eb694

Please sign in to comment.