aboutsummaryrefslogtreecommitdiff
path: root/checkout.py
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2024-02-16 03:00:16 -0500
committerJoshua M. Boniface <joshua@boniface.me>2024-02-16 03:00:16 -0500
commit6abc19f3d98483ace37d040a718dd01a8be12fdc (patch)
tree89e29e95f3e9af54681853b84fbe1247c4829d36 /checkout.py
parentAdd linting rules (diff)
downloadjellyfin-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-xcheckout.py11
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():
bgstack15