Skip to content

Commit

Permalink
tools: move string description after import modules
Browse files Browse the repository at this point in the history
  • Loading branch information
0xc0170 committed Feb 19, 2019
1 parent 62b5b46 commit 195965f
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 16 deletions.
2 changes: 1 addition & 1 deletion tools/export/exporters.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
limitations under the License.
"""

"""Just a template for subclassing"""
import os
from abc import abstractmethod, ABCMeta
import logging
Expand All @@ -30,6 +29,7 @@
from tools.utils import mkdir
from tools.resources import FileType

"""Just a template for subclassing"""

class TargetNotSupportedException(Exception):
"""Indicates that an IDE does not support a particular MCU"""
Expand Down
7 changes: 4 additions & 3 deletions tools/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
limitations
"""

""" The CLI entry point for exporting projects from the mbed tools to any of the
supported IDEs or project structures.
"""
from __future__ import print_function, absolute_import
from builtins import str

Expand Down Expand Up @@ -57,6 +54,10 @@
from tools.options import extract_profile, list_profiles, extract_mcus
from tools.notifier.term import TerminalNotifier

""" The CLI entry point for exporting projects from the mbed tools to any of the
supported IDEs or project structures.
"""

EXPORTER_ALIASES = {
u'gcc_arm': u'make_gcc_arm',
u'uvision': u'uvision5',
Expand Down
4 changes: 2 additions & 2 deletions tools/test/examples/examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
limitations
"""

""" import and bulid a bunch of example programs """

from argparse import ArgumentParser
import os
from os.path import dirname, abspath, basename
Expand All @@ -26,6 +24,8 @@
import subprocess
import json

""" import and bulid a bunch of example programs """

ROOT = abspath(dirname(dirname(dirname(dirname(__file__)))))
sys.path.insert(0, ROOT)

Expand Down
12 changes: 6 additions & 6 deletions tools/test/examples/examples_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
See the License for the specific language governing permissions and
limitations
"""
import os
from os.path import dirname, abspath, basename
import os.path
import sys
import subprocess
from shutil import rmtree

""" Import and bulid a bunch of example programs
This library includes functions that are shared between the examples.py and
the update.py modules.
"""
import os
from os.path import dirname, abspath, basename
import os.path
import sys
import subprocess
from shutil import rmtree

ROOT = abspath(dirname(dirname(dirname(dirname(__file__)))))
sys.path.insert(0, ROOT)
Expand Down
4 changes: 2 additions & 2 deletions tools/test/pylint.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
limitations
"""

"""A test that all code scores above a 9.25 in pylint"""

import subprocess
import re
import os.path

"""A test that all code scores above a 9.25 in pylint"""

SCORE_REGEXP = re.compile(
r'^Your\ code\ has\ been\ rated\ at\ (\-?[0-9\.]+)/10')

Expand Down
3 changes: 2 additions & 1 deletion tools/test/toolchains/api_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
limitations
"""

"""Tests for the toolchain sub-system"""
import sys
import os
from string import printable
Expand All @@ -25,6 +24,8 @@
from hypothesis import given, settings, HealthCheck
from hypothesis.strategies import text, lists, fixed_dictionaries, booleans

"""Tests for the toolchain sub-system"""

ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..",
".."))
sys.path.insert(0, ROOT)
Expand Down
3 changes: 2 additions & 1 deletion tools/test/toolchains/arm_support_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
limitations
"""

"""Tests for the arm toolchain supported checks"""
import sys
import os
from string import printable
Expand All @@ -25,6 +24,8 @@
from hypothesis import given, settings
from hypothesis.strategies import text, lists, sampled_from

"""Tests for the arm toolchain supported checks"""

ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..",
".."))
sys.path.insert(0, ROOT)
Expand Down

0 comments on commit 195965f

Please sign in to comment.