parttool: remove exemption from style check

This commit is contained in:
Renz Christian Bagaporo 2018-11-30 16:39:55 +08:00
parent 7458c1c1e2
commit a3b581bd8c
2 changed files with 11 additions and 10 deletions

View file

@ -156,7 +156,6 @@ exclude =
components/espcoredump/test/test_espcoredump.py, components/espcoredump/test/test_espcoredump.py,
components/nvs_flash/nvs_partition_generator/nvs_partition_gen.py, components/nvs_flash/nvs_partition_generator/nvs_partition_gen.py,
components/partition_table/gen_esp32part.py, components/partition_table/gen_esp32part.py,
components/partition_table/parttool.py,
components/partition_table/test_gen_esp32part_host/gen_esp32part_tests.py, components/partition_table/test_gen_esp32part_host/gen_esp32part_tests.py,
components/protocomm/python/constants_pb2.py, components/protocomm/python/constants_pb2.py,
components/protocomm/python/sec0_pb2.py, components/protocomm/python/sec0_pb2.py,

View file

@ -32,6 +32,7 @@ ESPTOOL_PY = os.path.join(IDF_COMPONENTS_PATH, "esptool_py", "esptool", "esptool
quiet = False quiet = False
def status(msg): def status(msg):
""" Print status message to stderr """ """ Print status message to stderr """
if not quiet: if not quiet:
@ -226,8 +227,8 @@ def main():
partition_selection_args.add_argument("--partition-name", "-n", help="name of the partition") partition_selection_args.add_argument("--partition-name", "-n", help="name of the partition")
partition_selection_args.add_argument("--partition-type", "-t", help="type of the partition") partition_selection_args.add_argument("--partition-type", "-t", help="type of the partition")
partition_selection_args.add_argument('--partition-boot-default', "-d", help='select the default boot partition, '+ partition_selection_args.add_argument('--partition-boot-default', "-d", help='select the default boot partition \
'using the same fallback logic as the IDF bootloader', action="store_true") using the same fallback logic as the IDF bootloader', action="store_true")
parser.add_argument("--partition-subtype", "-s", help="subtype of the partition") parser.add_argument("--partition-subtype", "-s", help="subtype of the partition")
@ -247,7 +248,8 @@ def main():
print_partition_info_subparser_info_type.add_argument("--info", help="type of partition information to get", nargs="+") print_partition_info_subparser_info_type.add_argument("--info", help="type of partition information to get", nargs="+")
print_partition_info_subparser_info_type.add_argument("--table", help="dump the partition table to a file") print_partition_info_subparser_info_type.add_argument("--table", help="dump the partition table to a file")
generate_blank_subparser = subparsers.add_parser("generate_blank_partition_file", help="generate a blank (all 0xFF) partition file of the specified partition that can be flashed to the device") generate_blank_subparser = subparsers.add_parser("generate_blank_partition_file", help="generate a blank (all 0xFF) partition file of \
the specified partition that can be flashed to the device")
generate_blank_subparser.add_argument("--output", help="blank partition file filename") generate_blank_subparser.add_argument("--output", help="blank partition file filename")
args = parser.parse_args() args = parser.parse_args()