Lint Python code with flake8 and isort

This commit is contained in:
Christian Clauss
2021-04-09 18:35:47 +02:00
committed by Brennan Ashton
parent 2b309349fe
commit 15932fa9ea
10 changed files with 67 additions and 50 deletions

View File

@@ -37,14 +37,15 @@
#
############################################################################
import os
import subprocess
import re
import sys
import argparse
from lxml import etree as ET
import os
import re
import subprocess
import sys
from copy import deepcopy
from lxml import etree as ET
HELP = """
ide_exporter.pyis a tool for generation nuttx iar/keil workspace
usage: ide_exporter.py [-h] [-v] [-o OUT_DIR] [-d]
@@ -178,7 +179,7 @@ def get_common_dir(dir_list):
"""Get common parent directory of a given directory list"""
com_dir = dir_list[0]
found = False
while found == False:
while not found:
found = True
com_dir = os.path.split(com_dir)[0]
for directory in dir_list: