From 2113543ad9d36d2c5ac46a90fb06023978e0af6e Mon Sep 17 00:00:00 2001 From: Jason Date: Sun, 16 Jun 2024 17:53:55 -0400 Subject: [PATCH] intentially leave GUI.py unformatted to test GHA --- .github/workflows/fmt.yml | 12 +++++------- .github/workflows/lint.yml | 2 -- main.py | 13 ++++++------- 3 files changed, 11 insertions(+), 16 deletions(-) diff --git a/.github/workflows/fmt.yml b/.github/workflows/fmt.yml index eceba03..d9a625d 100644 --- a/.github/workflows/fmt.yml +++ b/.github/workflows/fmt.yml @@ -8,7 +8,7 @@ on: push: branches: ["develop"] jobs: - build: + format: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -16,6 +16,9 @@ jobs: uses: actions/setup-python@v5 with: python-version: 3.10.14 + - uses: isort/isort-action@v1 + with: + check-only: false - name: Install Black run: pip install black - name: Run black check @@ -31,9 +34,4 @@ jobs: git commit -am "fixup: Format Python code with Black" git push origin HEAD:develop - - uses: isort/isort-action@v1 - with: - requirements-files: "requirements.txt" - - - + diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5547957..b944a9e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,5 +11,3 @@ jobs: with: options: "--line-length 101" - uses: isort/isort-action@v1 - with: - requirements-files: "requirements.txt" diff --git a/main.py b/main.py index a2abddf..ba9b6f1 100755 --- a/main.py +++ b/main.py @@ -15,14 +15,13 @@ from utils.console import print_markdown, print_step, print_substep from utils.ffmpeg_install import ffmpeg_install from utils.id import id from utils.version import checkversion -from video_creation.background import ( - chop_background, - download_background_audio, - download_background_video, - get_background_config, -) +from video_creation.background import (chop_background, + download_background_audio, + download_background_video, + get_background_config) from video_creation.final_video import make_final_video -from video_creation.screenshot_downloader import get_screenshots_of_reddit_posts +from video_creation.screenshot_downloader import \ + get_screenshots_of_reddit_posts from video_creation.voices import save_text_to_mp3 __VERSION__ = "3.2.1"