Skip to content

Commit 6cbe7a7

Browse files
0xc0170Cruz Monrreal II
authored andcommitted
tools: move string description after import modules
1 parent 81f7aa6 commit 6cbe7a7

File tree

7 files changed

+19
-16
lines changed

7 files changed

+19
-16
lines changed

tools/export/exporters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
limitations under the License.
1717
"""
1818

19-
"""Just a template for subclassing"""
2019
import os
2120
from abc import abstractmethod, ABCMeta
2221
import logging
@@ -30,6 +29,7 @@
3029
from tools.utils import mkdir
3130
from tools.resources import FileType
3231

32+
"""Just a template for subclassing"""
3333

3434
class TargetNotSupportedException(Exception):
3535
"""Indicates that an IDE does not support a particular MCU"""

tools/project.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
limitations
1717
"""
1818

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

@@ -57,6 +54,10 @@
5754
from tools.options import extract_profile, list_profiles, extract_mcus
5855
from tools.notifier.term import TerminalNotifier
5956

57+
""" The CLI entry point for exporting projects from the mbed tools to any of the
58+
supported IDEs or project structures.
59+
"""
60+
6061
EXPORTER_ALIASES = {
6162
u'gcc_arm': u'make_gcc_arm',
6263
u'uvision': u'uvision5',

tools/test/examples/examples.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
limitations
1717
"""
1818

19-
""" import and bulid a bunch of example programs """
20-
2119
from argparse import ArgumentParser
2220
import os
2321
from os.path import dirname, abspath, basename
@@ -26,6 +24,8 @@
2624
import subprocess
2725
import json
2826

27+
""" import and bulid a bunch of example programs """
28+
2929
ROOT = abspath(dirname(dirname(dirname(dirname(__file__)))))
3030
sys.path.insert(0, ROOT)
3131

tools/test/examples/examples_lib.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@
1515
See the License for the specific language governing permissions and
1616
limitations
1717
"""
18+
import os
19+
from os.path import dirname, abspath, basename
20+
import os.path
21+
import sys
22+
import subprocess
23+
from shutil import rmtree
1824

1925
""" Import and bulid a bunch of example programs
2026
2127
This library includes functions that are shared between the examples.py and
2228
the update.py modules.
2329
2430
"""
25-
import os
26-
from os.path import dirname, abspath, basename
27-
import os.path
28-
import sys
29-
import subprocess
30-
from shutil import rmtree
3131

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

tools/test/pylint.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
limitations
1717
"""
1818

19-
"""A test that all code scores above a 9.25 in pylint"""
20-
2119
import subprocess
2220
import re
2321
import os.path
2422

23+
"""A test that all code scores above a 9.25 in pylint"""
24+
2525
SCORE_REGEXP = re.compile(
2626
r'^Your\ code\ has\ been\ rated\ at\ (\-?[0-9\.]+)/10')
2727

tools/test/toolchains/api_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
limitations
1717
"""
1818

19-
"""Tests for the toolchain sub-system"""
2019
import sys
2120
import os
2221
from string import printable
@@ -25,6 +24,8 @@
2524
from hypothesis import given, settings, HealthCheck
2625
from hypothesis.strategies import text, lists, fixed_dictionaries, booleans
2726

27+
"""Tests for the toolchain sub-system"""
28+
2829
ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..",
2930
".."))
3031
sys.path.insert(0, ROOT)

tools/test/toolchains/arm_support_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
limitations
1717
"""
1818

19-
"""Tests for the arm toolchain supported checks"""
2019
import sys
2120
import os
2221
from string import printable
@@ -25,6 +24,8 @@
2524
from hypothesis import given, settings
2625
from hypothesis.strategies import text, lists, sampled_from
2726

27+
"""Tests for the arm toolchain supported checks"""
28+
2829
ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..",
2930
".."))
3031
sys.path.insert(0, ROOT)

0 commit comments

Comments
 (0)