Skip to content

Commit

Permalink
remove linter
Browse files Browse the repository at this point in the history
  • Loading branch information
hay-kot committed Apr 7, 2024
1 parent 45fd4b3 commit 5b4f08c
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 162 deletions.
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ repos:
# Ruff version.
rev: v0.3.5
hooks:
- id: ruff
- id: ruff-format
8 changes: 2 additions & 6 deletions dev/code-generation/utils/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
from rich.logging import RichHandler

FORMAT = "%(message)s"
logging.basicConfig(
level=logging.INFO, format=FORMAT, datefmt="[%X]", handlers=[RichHandler()]
)
logging.basicConfig(level=logging.INFO, format=FORMAT, datefmt="[%X]", handlers=[RichHandler()])

log = logging.getLogger("rich")

Expand Down Expand Up @@ -69,9 +67,7 @@ def find_start_end(file_text: list[str], gen_id: str) -> tuple[int, int, str]:
raise Exception("Could not find start and end of code generation block")

if start > end:
raise Exception(
f"Start ({start=}) of code generation block is after end ({end=})"
)
raise Exception(f"Start ({start=}) of code generation block is after end ({end=})")

return start, end, indentation

Expand Down
Loading

0 comments on commit 5b4f08c

Please sign in to comment.