Skip to content

Commit

Permalink
style: fix code formatting (Black, flake8)
Browse files Browse the repository at this point in the history
  • Loading branch information
keikoro committed May 27, 2024
1 parent b275eb5 commit e5e4fcb
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 8 deletions.
1 change: 1 addition & 0 deletions examples/soundtrack.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""A simple test script on how to put a soundtrack to a movie."""

from moviepy import *


Expand Down
6 changes: 4 additions & 2 deletions moviepy/Clip.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Implements the central object of MoviePy, the Clip, and all the methods that
are common to the two subclasses of Clip, VideoClip and AudioClip.
"""

import copy as _copy
from functools import reduce
from numbers import Real
Expand Down Expand Up @@ -635,8 +636,9 @@ def __getitem__(self, key):
return self.get_frame(key)

def __del__(self):
# WARNING: as stated in close() above, if we call close, it closes clips even
# if shallow copies are still in used, leading to some bugs: https://github.com/Zulko/moviepy/issues/1994
# WARNING: as stated in close() above, if we call close, it closes clips
# even if shallow copies are still in used, leading to some bugs, see:
# https://github.com/Zulko/moviepy/issues/1994
# so don't call self.close() here, rather do it manually in the code.
pass

Expand Down
1 change: 1 addition & 0 deletions moviepy/audio/fx/all/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Use the fx method directly from the clip instance (e.g. ``clip.audio_normalize(...)``)
or import the function from moviepy.audio.fx instead.
"""

import warnings

from .. import * # noqa 401,F403
Expand Down
1 change: 1 addition & 0 deletions moviepy/decorators.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Decorators used by moviepy."""

import inspect
import os

Expand Down
1 change: 1 addition & 0 deletions moviepy/tools.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Misc. useful functions that can be used at many places in the program."""

import os
import subprocess as sp
import warnings
Expand Down
1 change: 1 addition & 0 deletions moviepy/video/fx/all/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Use the fx method directly from the clip instance (e.g. ``clip.resize(...)``)
or import the function from moviepy.video.fx instead.
"""

import warnings

from moviepy.video.fx import * # noqa F401,F403
Expand Down
13 changes: 7 additions & 6 deletions moviepy/video/io/ffmpeg_reader.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Implements all the functions to read a video or a picture using ffmpeg."""

import os
import re
import subprocess as sp
Expand Down Expand Up @@ -451,12 +452,12 @@ def parse(self):
# for default streams, set their numbers globally, so it's
# easy to get without iterating all
if self._current_stream["default"]:
self.result[
f"default_{stream_type_lower}_input_number"
] = input_number
self.result[
f"default_{stream_type_lower}_stream_number"
] = stream_number
self.result[f"default_{stream_type_lower}_input_number"] = (
input_number
)
self.result[f"default_{stream_type_lower}_stream_number"] = (
stream_number
)

# exit chapter
if self._current_chapter:
Expand Down
1 change: 1 addition & 0 deletions moviepy/video/tools/credits.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Contains different functions to make end and opening credits, even though it is
difficult to fill everyone needs in this matter.
"""

from moviepy.decorators import convert_path_to_string
from moviepy.video.compositing.CompositeVideoClip import CompositeVideoClip
from moviepy.video.fx.resize import resize
Expand Down
1 change: 1 addition & 0 deletions tests/test_VideoFileClip.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Video file clip tests meant to be run with pytest."""

import copy
import os

Expand Down

0 comments on commit e5e4fcb

Please sign in to comment.