|
6 | 6 |
|
7 | 7 | import argparse
|
8 | 8 | import collections
|
9 |
| -from itertools import takewhile |
10 | 9 | import json
|
11 | 10 | import logging
|
12 | 11 | import os
|
13 |
| -from pathlib import Path, PurePath |
14 | 12 | import platform
|
15 | 13 | import re
|
| 14 | +import shlex |
| 15 | +import shutil |
16 | 16 | import subprocess
|
17 | 17 | import sys
|
18 | 18 | import tempfile
|
19 |
| -import traceback |
20 |
| -import shlex |
21 |
| -import shutil |
22 | 19 | import textwrap
|
| 20 | +import traceback |
| 21 | +from itertools import takewhile |
| 22 | +from pathlib import Path, PurePath |
| 23 | + |
| 24 | +import magic |
23 | 25 | import unidiff
|
24 | 26 | import yaml
|
25 |
| - |
26 | 27 | from dotenv import load_dotenv
|
27 |
| - |
| 28 | +from junitparser import Error, Failure, JUnitXml, Skipped, TestCase, TestSuite |
| 29 | +from west.manifest import Manifest, ManifestProject |
28 | 30 | from yamllint import config, linter
|
29 | 31 |
|
30 |
| -from junitparser import TestCase, TestSuite, JUnitXml, Skipped, Error, Failure |
31 |
| -import magic |
32 |
| - |
33 |
| -from west.manifest import Manifest |
34 |
| -from west.manifest import ManifestProject |
35 |
| - |
36 | 32 | try:
|
37 | 33 | from yaml import CSafeLoader as SafeLoader
|
38 | 34 | except ImportError:
|
39 | 35 | from yaml import SafeLoader
|
40 | 36 |
|
41 | 37 | sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
|
42 |
| -from get_maintainer import Maintainers, MaintainersError |
43 | 38 | import list_boards
|
44 | 39 | import list_hardware
|
| 40 | +from get_maintainer import Maintainers, MaintainersError |
45 | 41 |
|
46 | 42 | sys.path.insert(0, str(Path(__file__).resolve().parents[2]
|
47 | 43 | / "scripts" / "dts" / "python-devicetree" / "src"))
|
48 | 44 | from devicetree import edtlib
|
49 | 45 |
|
50 |
| - |
51 | 46 | # Let the user run this script as ./scripts/ci/check_compliance.py without
|
52 | 47 | # making them set ZEPHYR_BASE.
|
53 | 48 | ZEPHYR_BASE = os.environ.get('ZEPHYR_BASE')
|
|
0 commit comments