From cff9635bede2c03aeaeedd8489155339299a9bd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Hrb=C3=A1=C4=8D?= <david@hrbac.cz> Date: Thu, 8 Nov 2018 09:56:11 +0100 Subject: [PATCH] Cleaned python --- .pylintrc | 7 +++++++ modules.py | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .pylintrc diff --git a/.pylintrc b/.pylintrc new file mode 100644 index 00000000..bd27071f --- /dev/null +++ b/.pylintrc @@ -0,0 +1,7 @@ +[FORMAT] + +# Maximum number of characters on a single line. +max-line-length=150 + +# Maximum number of lines in a module +max-module-lines=1000 diff --git a/modules.py b/modules.py index cfe785b4..d2c84b4f 100755 --- a/modules.py +++ b/modules.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +"""Script to generate module lists""" import os import re @@ -67,8 +68,8 @@ if __name__ == "__main__": first_module_path = os.path.join(software_path, software_versions[0]) software_url, software_description = get_module_description(first_module_path) HTML_SOURCE_DATA[subdir][soft] = {'versions': [], - 'url': software_url, - 'description': software_description} + 'url': software_url, + 'description': software_description} for version in software_versions: HTML_SOURCE_DATA[subdir][soft]['versions'].append(version) if software_url in ["", "(none)"]: -- GitLab