gh-action:fix python lint

This commit is contained in:
morris 2019-12-30 13:24:43 +08:00
parent f30e920116
commit e51bd6deaf
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@ name: Python CI
on:
pull_request:
paths:
- "*.py"
- "**.py"
- "requirements.txt"
jobs:

View file

@ -248,7 +248,7 @@ class IDFApp(App.BaseApp):
flash_settings["encrypt"] = "CONFIG_SECURE_FLASH_ENCRYPTION_MODE_DEVELOPMENT" in sdkconfig_dict
# make file offsets into integers, make paths absolute
flash_files = [(int(offs, 0), os.path.join(self.binary_path, path.strip())) for (offs, path) in flash_files]
flash_files = [(int(offs, 0), os.path.join(self.binary_path, file_path.strip())) for (offs, file_path) in flash_files]
return flash_files, flash_settings