Skip to content

Commit b4fadbc

Browse files
fix isort profile
1 parent fd9b0a9 commit b4fadbc

4 files changed

Lines changed: 19 additions & 10 deletions

File tree

.github/workflows/fmt.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ jobs:
2121
- name: Run black check
2222
run: black --check . --line-length 101
2323
- name: Run isort check
24-
run: isort . --check-only
24+
run: isort . --check-only --diff --profile black
2525
- name: If needed, commit changes to the pull request
2626
if: failure()
2727
run: |
2828
black . --line-length 101
29-
isort .
29+
isort . --profile black
3030
git config --global user.name github-actions
3131
git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com
3232
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY

.github/workflows/lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ jobs:
1111
with:
1212
options: "--line-length 101"
1313
- uses: isort/isort-action@v1
14+
with:
15+
configuration: "--check-only --diff --profile black"

GUI.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@
33

44
# Used "tomlkit" instead of "toml" because it doesn't change formatting on "dump"
55
import tomlkit
6-
from flask import (Flask, redirect, render_template, request,
7-
send_from_directory, url_for)
6+
from flask import (
7+
Flask,
8+
redirect,
9+
render_template,
10+
request,
11+
send_from_directory,
12+
url_for,
13+
)
814

915
import utils.gui_utils as gui
1016

main.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@
1515
from utils.ffmpeg_install import ffmpeg_install
1616
from utils.id import id
1717
from utils.version import checkversion
18-
from video_creation.background import (chop_background,
19-
download_background_audio,
20-
download_background_video,
21-
get_background_config)
18+
from video_creation.background import (
19+
chop_background,
20+
download_background_audio,
21+
download_background_video,
22+
get_background_config,
23+
)
2224
from video_creation.final_video import make_final_video
23-
from video_creation.screenshot_downloader import \
24-
get_screenshots_of_reddit_posts
25+
from video_creation.screenshot_downloader import get_screenshots_of_reddit_posts
2526
from video_creation.voices import save_text_to_mp3
2627

2728
__VERSION__ = "3.2.1"

0 commit comments

Comments
 (0)