fix isort profile

pull/2060/head
Jason 5 months ago
parent fd9b0a936a
commit b4fadbcf21

@ -21,12 +21,12 @@ jobs:
- name: Run black check - name: Run black check
run: black --check . --line-length 101 run: black --check . --line-length 101
- name: Run isort check - name: Run isort check
run: isort . --check-only run: isort . --check-only --diff --profile black
- name: If needed, commit changes to the pull request - name: If needed, commit changes to the pull request
if: failure() if: failure()
run: | run: |
black . --line-length 101 black . --line-length 101
isort . isort . --profile black
git config --global user.name github-actions git config --global user.name github-actions
git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY

@ -11,3 +11,5 @@ jobs:
with: with:
options: "--line-length 101" options: "--line-length 101"
- uses: isort/isort-action@v1 - uses: isort/isort-action@v1
with:
configuration: "--check-only --diff --profile black"

@ -3,8 +3,14 @@ from pathlib import Path
# Used "tomlkit" instead of "toml" because it doesn't change formatting on "dump" # Used "tomlkit" instead of "toml" because it doesn't change formatting on "dump"
import tomlkit import tomlkit
from flask import (Flask, redirect, render_template, request, from flask import (
send_from_directory, url_for) Flask,
redirect,
render_template,
request,
send_from_directory,
url_for,
)
import utils.gui_utils as gui import utils.gui_utils as gui

@ -15,13 +15,14 @@ from utils.console import print_markdown, print_step, print_substep
from utils.ffmpeg_install import ffmpeg_install from utils.ffmpeg_install import ffmpeg_install
from utils.id import id from utils.id import id
from utils.version import checkversion from utils.version import checkversion
from video_creation.background import (chop_background, from video_creation.background import (
download_background_audio, chop_background,
download_background_video, download_background_audio,
get_background_config) download_background_video,
get_background_config,
)
from video_creation.final_video import make_final_video from video_creation.final_video import make_final_video
from video_creation.screenshot_downloader import \ from video_creation.screenshot_downloader import get_screenshots_of_reddit_posts
get_screenshots_of_reddit_posts
from video_creation.voices import save_text_to_mp3 from video_creation.voices import save_text_to_mp3
__VERSION__ = "3.2.1" __VERSION__ = "3.2.1"

Loading…
Cancel
Save