Skip to content
Snippets Groups Projects
Commit cff9635b authored by David Hrbáč's avatar David Hrbáč
Browse files

Cleaned python

parent 3b50690c
No related branches found
No related tags found
1 merge request!3Enabled CI
Pipeline #5280 failed
[FORMAT]
# Maximum number of characters on a single line.
max-line-length=150
# Maximum number of lines in a module
max-module-lines=1000
#!/usr/bin/env python #!/usr/bin/env python
"""Script to generate module lists"""
import os import os
import re import re
...@@ -67,8 +68,8 @@ if __name__ == "__main__": ...@@ -67,8 +68,8 @@ if __name__ == "__main__":
first_module_path = os.path.join(software_path, software_versions[0]) first_module_path = os.path.join(software_path, software_versions[0])
software_url, software_description = get_module_description(first_module_path) software_url, software_description = get_module_description(first_module_path)
HTML_SOURCE_DATA[subdir][soft] = {'versions': [], HTML_SOURCE_DATA[subdir][soft] = {'versions': [],
'url': software_url, 'url': software_url,
'description': software_description} 'description': software_description}
for version in software_versions: for version in software_versions:
HTML_SOURCE_DATA[subdir][soft]['versions'].append(version) HTML_SOURCE_DATA[subdir][soft]['versions'].append(version)
if software_url in ["", "(none)"]: if software_url in ["", "(none)"]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment