openbmc / openbmc-test-automation

Apache License 2.0
100 stars 92 forks source link

How to define the import section for python, robot , custom python module #2200

Closed susilsi7 closed 11 months ago

susilsi7 commented 1 year ago

Sample code from current File.

import os
import tempfile
import json
import glob
from tally_sheet import *

from robot.libraries.BuiltIn import BuiltIn
try:
    from robot.utils import DotDict
except ImportError:
    import collections

import gen_print as gp
import gen_valid as gv
import gen_misc as gm
import gen_cmd as gc
import var_funcs as vf
  1. Which module has higher precedence robot / python / python custom module
  2. can you provide sample code with section for each modules
  3. Any space required between robot / python / python custom module
williamspatrick commented 1 year ago

We are going to enable black/Isort across the whole project soon. Those probably answer most of your questions.

gkeishin commented 11 months ago

we have cleaned up a bunch and still, there are more for the future.. but this can be closed now.