summaryrefslogtreecommitdiffstats
path: root/settings.py
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2018-01-27 10:02:34 -0600
committerGunnar Mills <gmills@us.ibm.com>2018-01-31 12:02:31 -0600
commita16abc5aa2d30b9605e30ffd6bbe3aa05585ae87 (patch)
treeab2946747d427994c7c3ddfe7d671798dd9b3525 /settings.py
parenta29a3eb71fed0e17d60dcbb16a32ba7e6a70b852 (diff)
downloadphosphor-settingsd-a16abc5aa2d30b9605e30ffd6bbe3aa05585ae87.tar.gz
phosphor-settingsd-a16abc5aa2d30b9605e30ffd6bbe3aa05585ae87.zip
PEP 8 fixes
Added E402 to the ignore errors list. E402 is "module level import not at top of file" and ignoring since settings_manager.py needs to modify the sys.path before importing certain modules. Since the default ignore list is not used anymore, rules E121,E123,E126,E226,E24,E704,W503 are now enforced. Looking at those rules, I believe we should enforce them. Note E121,E123,E126,E226,E24,E704,W503 are all in the default ignore list, so if no ignore list is provided in the setup.cfg these errors are ignored. from pycodestyle --help --ignore=errors skip errors and warnings (e.g. E4,W) (default: E121,E123,E126,E226,E24,E704,W503) Change-Id: I0f64535eb4b4ba471466c8c9c3dbda1f8b33f702 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'settings.py')
-rwxr-xr-xsettings.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/settings.py b/settings.py
index adee094..9046e32 100755
--- a/settings.py
+++ b/settings.py
@@ -5,6 +5,7 @@ import yaml
from mako.template import Template
import argparse
+
def main():
parser = argparse.ArgumentParser(
description="Settings YAML parser and code generator")
OpenPOWER on IntegriCloud