From c8a561dbd7f2b48a6bc5089795271a66a51d9620 Mon Sep 17 00:00:00 2001 From: helgeerbe Date: Thu, 10 Aug 2023 13:03:51 +0200 Subject: [PATCH] fix linting errors --- pio-scripts/auto_firmware_version.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pio-scripts/auto_firmware_version.py b/pio-scripts/auto_firmware_version.py index 4c170c47..00f638a8 100644 --- a/pio-scripts/auto_firmware_version.py +++ b/pio-scripts/auto_firmware_version.py @@ -3,6 +3,7 @@ # Copyright (C) 2022 Thomas Basler and others # import pkg_resources +from dulwich import porcelain Import("env") @@ -13,7 +14,6 @@ missing_pkgs = required_pkgs - installed_pkgs if missing_pkgs: env.Execute('"$PYTHONEXE" -m pip install dulwich') -from dulwich import porcelain def get_firmware_specifier_build_flag(): try: @@ -28,8 +28,8 @@ def get_firmware_specifier_build_flag(): branch_name = "" build_flag = "-D AUTO_GIT_HASH=\\\"" + build_version + "\\\" " build_flag += "-D AUTO_GIT_BRANCH=\\\"" + branch_name + "\\\"" - print ("Firmware Revision: " + build_version) - print ("Firmware build on branch: " + branch_name) + print("Firmware Revision: " + build_version) + print("Firmware build on branch: " + branch_name) return (build_flag) env.Append(