Enable pycodestyle
This commit allows our python code to be run through the CI format-code
scripts. The exact content is copied from sdbusplus.
Tested, ran pycodeformat on each script, observed it passing.
Ran each script individually. check_base_registry seems broken previous
to this commit, although it provides the same output.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I7eacfa355b794f49308b900c2988809d2aa122c3
diff --git a/scripts/check_base_registry.py b/scripts/check_base_registry.py
index 667f167..ab4b2e6 100644
--- a/scripts/check_base_registry.py
+++ b/scripts/check_base_registry.py
@@ -32,12 +32,12 @@
error_info = error_data[index:index + 15]
error_str = " ".join(error_info)
error_str = re.sub(
- 'std::to_string\(arg(\d+)\)',
+ 'std::to_string\\(arg(\\d+)\\)',
'arg\\1',
error_str)
- error_str = re.sub('"\n\s*"', '', error_str, re.MULTILINE)
+ error_str = re.sub('"\n\\s*"', '', error_str, re.MULTILINE)
error_str = re.sub(
- '"\s*\+\s*arg(\d+)\s*\+\n?\s*"',
+ '"\\s*\\+\\s*arg(\\d+)\\s*\\+\n?\\s*"',
'%\\1',
error_str,
re.MULTILINE)