Skip to content

Commit

Permalink
Do not show TUI in GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
robvanderleek committed Feb 22, 2024
1 parent 0f45f71 commit 50894b5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions codelimit/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import sys
from pathlib import Path
from typing import List, Annotated, Optional
from rich import print
Expand Down Expand Up @@ -73,8 +74,9 @@ def scan(
cache_dir_gitignore = cache_dir.joinpath(".gitignore").resolve()
cache_dir_gitignore.write_text("# Created by codelimit automatically.\n*\n")
report_path.write_text(ReportWriter(report).to_json())
app = CodeLimitApp(report)
app.run()
if sys.stdout.isatty():
app = CodeLimitApp(report)
app.run()


@cli.command(help="Upload report to Code Limit")
Expand Down

0 comments on commit 50894b5

Please sign in to comment.