diff options
author | Joshua M. Boniface <joshua@boniface.me> | 2024-02-16 03:00:16 -0500 |
---|---|---|
committer | Joshua M. Boniface <joshua@boniface.me> | 2024-02-16 03:00:16 -0500 |
commit | 6abc19f3d98483ace37d040a718dd01a8be12fdc (patch) | |
tree | 89e29e95f3e9af54681853b84fbe1247c4829d36 /checkout.py | |
parent | Add linting rules (diff) | |
download | jellyfin-packaging-6abc19f3d98483ace37d040a718dd01a8be12fdc.tar.gz jellyfin-packaging-6abc19f3d98483ace37d040a718dd01a8be12fdc.tar.bz2 jellyfin-packaging-6abc19f3d98483ace37d040a718dd01a8be12fdc.zip |
Reformat (Black) and lint (flake8) Python scripts
Diffstat (limited to 'checkout.py')
-rwxr-xr-x | checkout.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/checkout.py b/checkout.py index 5b25758..9e1c6d0 100755 --- a/checkout.py +++ b/checkout.py @@ -5,7 +5,6 @@ # Part of the Jellyfin CI system ############################################################################### -import os.path from subprocess import run, PIPE import sys @@ -36,10 +35,12 @@ for submodule in this_repo.submodules: # Validate that the provided tag is valid; if not, fall back to "master" if target_release != "master": if ( - target_release not in submodules["jellyfin-server"].tags or - target_release not in submodules["jellyfin-web"].tags - ): - print(f"WARNING: Provided tag {target_release} is not a valid tag for both jellyfin-server and jellyfin-web; using master instead") + target_release not in submodules["jellyfin-server"].tags + or target_release not in submodules["jellyfin-web"].tags + ): + print( + f"WARNING: Provided tag {target_release} is not a valid tag for both jellyfin-server and jellyfin-web; using master instead" + ) target_release = "master" for submodule in submodules.keys(): |