scripts: Remove unused imports in all Python scripts
Discovered with pylint3. Upstream open-amp PR: https://github.com/OpenAMP/open-amp/pull/168 Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
This commit is contained in:
parent
12ba9dfa52
commit
d5b0bd14e3
13 changed files with 4 additions and 23 deletions
|
@ -42,11 +42,9 @@ from reading their contents.
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import struct
|
import struct
|
||||||
import parser
|
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
import ctypes
|
import ctypes
|
||||||
import argparse
|
import argparse
|
||||||
import re
|
|
||||||
from elftools.elf.elffile import ELFFile
|
from elftools.elf.elffile import ELFFile
|
||||||
from elftools.elf.sections import SymbolTableSection
|
from elftools.elf.sections import SymbolTableSection
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
import re
|
import re
|
||||||
import os
|
|
||||||
from docutils import nodes
|
from docutils import nodes
|
||||||
from local_util import run_cmd_get_output
|
from local_util import run_cmd_get_output
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
from graphviz import Digraph
|
|
||||||
import argparse
|
import argparse
|
||||||
import os
|
import os
|
||||||
import pydot
|
import pydot
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
|
||||||
import re
|
|
||||||
import subprocess
|
import subprocess
|
||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
|
|
|
@ -3,9 +3,7 @@
|
||||||
# A script to generate a list of boards that have changed or added and create an
|
# A script to generate a list of boards that have changed or added and create an
|
||||||
# arguemnts file for sanitycheck to allow running more tests for those boards.
|
# arguemnts file for sanitycheck to allow running more tests for those boards.
|
||||||
|
|
||||||
import sys
|
|
||||||
import re, os
|
import re, os
|
||||||
from email.utils import parseaddr
|
|
||||||
import sh
|
import sh
|
||||||
import logging
|
import logging
|
||||||
import argparse
|
import argparse
|
||||||
|
|
|
@ -3,9 +3,7 @@
|
||||||
# A script to generate a list of tests that have changed or added and create an
|
# A script to generate a list of tests that have changed or added and create an
|
||||||
# arguemnts file for sanitycheck to allow running those tests with --all
|
# arguemnts file for sanitycheck to allow running those tests with --all
|
||||||
|
|
||||||
import sys
|
import os
|
||||||
import re, os
|
|
||||||
from email.utils import parseaddr
|
|
||||||
import sh
|
import sh
|
||||||
import logging
|
import logging
|
||||||
import argparse
|
import argparse
|
||||||
|
|
|
@ -36,13 +36,9 @@ import sys
|
||||||
import argparse
|
import argparse
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import string
|
|
||||||
import subprocess
|
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
from elf_helper import ElfHelper
|
|
||||||
from elftools.elf.elffile import ELFFile
|
from elftools.elf.elffile import ELFFile
|
||||||
from elftools.elf.sections import SymbolTableSection
|
from elftools.elf.sections import SymbolTableSection
|
||||||
from operator import itemgetter
|
|
||||||
|
|
||||||
SZ = 'size'
|
SZ = 'size'
|
||||||
SRC = 'sources'
|
SRC = 'sources'
|
||||||
|
|
|
@ -11,8 +11,8 @@ While every LineRule can be implemented as a CommitRule, it's usually easier and
|
||||||
that fits your needs.
|
that fits your needs.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from gitlint.rules import CommitRule, RuleViolation, TitleRegexMatches, CommitMessageTitle, LineRule, CommitMessageBody
|
from gitlint.rules import CommitRule, RuleViolation, CommitMessageTitle, LineRule, CommitMessageBody
|
||||||
from gitlint.options import IntOption, BoolOption, StrOption, ListOption
|
from gitlint.options import IntOption, StrOption
|
||||||
import re
|
import re
|
||||||
|
|
||||||
class BodyMinLineCount(CommitRule):
|
class BodyMinLineCount(CommitRule):
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
# Zephyr's sanity check testcases.
|
# Zephyr's sanity check testcases.
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
|
||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
log = logging.getLogger("scl")
|
log = logging.getLogger("scl")
|
||||||
|
|
|
@ -6,7 +6,6 @@ import argparse
|
||||||
import os
|
import os
|
||||||
import string
|
import string
|
||||||
import sys
|
import sys
|
||||||
import shutil
|
|
||||||
|
|
||||||
quartus_cpf_template = """<?xml version="1.0" encoding="US-ASCII" standalone="yes"?>
|
quartus_cpf_template = """<?xml version="1.0" encoding="US-ASCII" standalone="yes"?>
|
||||||
<cof>
|
<cof>
|
||||||
|
|
|
@ -4,10 +4,9 @@
|
||||||
|
|
||||||
'''bossac-specific runner (flash only) for Atmel SAM microcontrollers.'''
|
'''bossac-specific runner (flash only) for Atmel SAM microcontrollers.'''
|
||||||
|
|
||||||
import os
|
|
||||||
import platform
|
import platform
|
||||||
|
|
||||||
from runners.core import ZephyrBinaryRunner, RunnerCaps, BuildConfiguration
|
from runners.core import ZephyrBinaryRunner, RunnerCaps
|
||||||
|
|
||||||
DEFAULT_BOSSAC_PORT = '/dev/ttyACM0'
|
DEFAULT_BOSSAC_PORT = '/dev/ttyACM0'
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
from argparse import Namespace
|
from argparse import Namespace
|
||||||
from unittest.mock import patch
|
|
||||||
|
|
||||||
from build import Build
|
from build import Build
|
||||||
import pytest
|
import pytest
|
||||||
|
|
|
@ -9,7 +9,6 @@ pairs to use within a CMake build file.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import sys
|
|
||||||
import yaml
|
import yaml
|
||||||
import pykwalify.core
|
import pykwalify.core
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue