From 44a296be9796b952992150bf8505959203246ce3 Mon Sep 17 00:00:00 2001 From: Nathan Ruiz Date: Sat, 21 Sep 2024 10:58:14 +0000 Subject: [PATCH] ci/lint: add flake8-commas check --- TOOLS/dylib_unhell.py | 2 +- TOOLS/macos-sdk-version.py | 2 +- pyproject.toml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/TOOLS/dylib_unhell.py b/TOOLS/dylib_unhell.py index efd389a068..cecef2a5f3 100755 --- a/TOOLS/dylib_unhell.py +++ b/TOOLS/dylib_unhell.py @@ -267,7 +267,7 @@ def process_vulkan_loader(binary, loader_name, loader_relative_folder, library_n print(">>> copying loader library " + loader_library_name) framework_bundle_folder = os.path.join( - loader_bundle_folder, library_relative_folder + loader_bundle_folder, library_relative_folder, ) if not os.path.exists(framework_bundle_folder): os.makedirs(framework_bundle_folder) diff --git a/TOOLS/macos-sdk-version.py b/TOOLS/macos-sdk-version.py index 103e6cafa6..55e8975b77 100755 --- a/TOOLS/macos-sdk-version.py +++ b/TOOLS/macos-sdk-version.py @@ -33,7 +33,7 @@ def find_macos_sdk(): sdk_version = check_output( [xcodebuild, "-sdk", "macosx", "-version", "ProductVersion"], encoding="UTF-8", - stderr=subprocess.DEVNULL + stderr=subprocess.DEVNULL, ) except Exception: pass diff --git a/pyproject.toml b/pyproject.toml index 7e72b41e2d..d370f5cd4a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,4 +10,5 @@ select = [ "UP", # pyupgrade "A", # flake8-builtins "Q", # flake8-quotes + "COM", # flake8-commas ]