aboutsummaryrefslogtreecommitdiff
path: root/pylint
diff options
context:
space:
mode:
authorMike Frysinger <vapier@chromium.org>2020-03-26 14:32:57 -0400
committerMike Frysinger <vapier@gentoo.org>2021-04-15 19:10:24 -0400
commit9a9adbf228320fdc135ad1457bb8bf586c71279c (patch)
tree112dfc3e74ad1b1aaf1abda73d69625bb29df833 /pylint
parentpspax: replace deprecated capgetp() (diff)
downloadpax-utils-9a9adbf228320fdc135ad1457bb8bf586c71279c.tar.gz
pax-utils-9a9adbf228320fdc135ad1457bb8bf586c71279c.tar.bz2
pax-utils-9a9adbf228320fdc135ad1457bb8bf586c71279c.zip
pylintrc: adjust python code to 4 space indent
This aligns with the latest Google/PEP standards. This doesn't add any pylint warnings as we've been disabling long lines in here for a long time. We don't do any other reformatting to try and cut down on git log/diff noise. Looking at this with --word-diff=color shows only whitespace changes. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'pylint')
-rwxr-xr-xpylint46
1 files changed, 23 insertions, 23 deletions
diff --git a/pylint b/pylint
index 965537d..38d77a2 100755
--- a/pylint
+++ b/pylint
@@ -12,38 +12,38 @@ import sys
def find_all_modules(source_root):
- """Locate all python modules in the tree for scanning"""
- ret = []
+ """Locate all python modules in the tree for scanning"""
+ ret = []
- for root, _dirs, files in os.walk(source_root, topdown=False):
- # Add all of the .py modules in the tree.
- ret += [os.path.join(root, x) for x in files if x.endswith('.py')]
+ for root, _dirs, files in os.walk(source_root, topdown=False):
+ # Add all of the .py modules in the tree.
+ ret += [os.path.join(root, x) for x in files if x.endswith('.py')]
- # Add the main scripts that don't end in .py.
- ret += [os.path.join(source_root, x) for x in ('pylint',)]
+ # Add the main scripts that don't end in .py.
+ ret += [os.path.join(source_root, x) for x in ('pylint',)]
- return ret
+ return ret
def main(argv):
- """The main entry point"""
- source_root = os.path.dirname(os.path.realpath(__file__))
+ """The main entry point"""
+ source_root = os.path.dirname(os.path.realpath(__file__))
- if not argv:
- argv = find_all_modules(source_root)
+ if not argv:
+ argv = find_all_modules(source_root)
- pympath = source_root
- pythonpath = os.environ.get('PYTHONPATH')
- if pythonpath is None:
- pythonpath = pympath
- else:
- pythonpath = pympath + ':' + pythonpath
- os.environ['PYTHONPATH'] = pythonpath
+ pympath = source_root
+ pythonpath = os.environ.get('PYTHONPATH')
+ if pythonpath is None:
+ pythonpath = pympath
+ else:
+ pythonpath = pympath + ':' + pythonpath
+ os.environ['PYTHONPATH'] = pythonpath
- pylintrc = os.path.join(source_root, '.pylintrc')
- cmd = ['pylint', '--rcfile', pylintrc]
- os.execvp(cmd[0], cmd + argv)
+ pylintrc = os.path.join(source_root, '.pylintrc')
+ cmd = ['pylint', '--rcfile', pylintrc]
+ os.execvp(cmd[0], cmd + argv)
if __name__ == '__main__':
- sys.exit(main(sys.argv[1:]))
+ sys.exit(main(sys.argv[1:]))