Skip to content

Commit

Permalink
QA: run black and isort on scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
sbraz committed Feb 12, 2025
1 parent 5f15927 commit c69a662
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
7 changes: 6 additions & 1 deletion scripts/download_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#: Version of the bundled MediaInfo library
MEDIAINFO_VERSION: str = "24.12"

# fmt: off
#: BLAKE2b hashes for the specific MediaInfo version, given the (platform, arch)
MEDIAINFO_HASHES: dict[tuple[str, str], str] = {
("linux", "x86_64"): "13c4afb2948187cc06f13b1cd7d7a49f8618b8d1e3a440d9e96ef7b486a653d5e2567aae97dc253e3d3f484a7837e4b5a972abab4803223300a79c601c0bcce1",
Expand All @@ -38,6 +39,7 @@
("win32", "x86_64"): "f831c588e9eaf51201b4cc7995dce66852591764fc5ef05effd3a8a2037ff5d37ec039eef5d1f990f05bd7452c1cad720e95b77a095f9f1a690689e351fc00b8",
("win32", "i386"): "0f0e14c103eac858fe683ec7d51634d62e5e0af658940fd26608249f1048846a92a334438204fe5ecfceb70cb00e5550bfb717a77f10816a2583b5041bb61790",
}
# fmt: on


def get_file_blake2b(file_path: os.PathLike | str, chunksize: int = 1 << 20) -> str:
Expand Down Expand Up @@ -269,7 +271,10 @@ def clean_files(

default_folder = Path(__file__).resolve().parent.parent / "src" / "pymediainfo"

parser = argparse.ArgumentParser(description="download MediaInfo files from upstream.", formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser = argparse.ArgumentParser(
description="download MediaInfo files from upstream.",
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
)
parser.add_argument(
"-p",
"--platform",
Expand Down
1 change: 1 addition & 0 deletions scripts/tag_pure_wheels.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import argparse
import pathlib

from wheel.cli.tags import tags

if __name__ == "__main__":
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ commands =
[testenv:black]
deps =
black
commands = black --line-length 100 --check --diff src tests
commands = black --line-length 100 --check --diff src tests scripts

[testenv:flake8]
deps = flake8
commands = flake8 --max-line-length 100 src tests

[testenv:isort]
deps = isort
commands = isort --check src tests
commands = isort --check src tests scripts

[testenv:pylint]
deps =
Expand Down

0 comments on commit c69a662

Please sign in to comment.