commit: d2c726f74978224f5bc3d98b36e31a6e74e4bb28
parent 51b0bf840516988d9c920449f9bbe5ba3ce09149
Author: fosslinux <fosslinux@aussies.space>
Date: Sat, 28 Jan 2023 11:18:32 +1100
Fix source_manifest pylint
Diffstat:
2 files changed, 35 insertions(+), 34 deletions(-)
diff --git a/source-manifest.py b/source-manifest.py
@@ -1,34 +0,0 @@
-#!/usr/bin/env python3
-"""
-A helper application used to get a list of source files required
-for the bootstrapping process.
-"""
-
-# SPDX-License-Identifier: GPL-3.0-or-later
-# SPDX-FileCopyrightText: 2023 Dor Askayo <dor.askayo@gmail.com>
-
-import argparse
-
-from sysa import SysA
-from sysc import SysC
-
-def main():
- parser = argparse.ArgumentParser()
-
- parser.add_argument("-s", "--system",
- help="Generate source manifest for the specified systems",
- choices=["sysa", "sysc"],
- nargs="+",
- action="extend",
- required=True)
-
- args = parser.parse_args()
-
- if "sysa" in args.system:
- print(SysA.get_source_manifest())
-
- if "sysc" in args.system:
- print(SysC.get_source_manifest())
-
-if __name__ == "__main__":
- main()
diff --git a/source_manifest.py b/source_manifest.py
@@ -0,0 +1,35 @@
+#!/usr/bin/env python3
+"""
+A helper application used to get a list of source files required
+for the bootstrapping process.
+"""
+
+# SPDX-License-Identifier: GPL-3.0-or-later
+# SPDX-FileCopyrightText: 2023 Dor Askayo <dor.askayo@gmail.com>
+
+import argparse
+
+from sysa import SysA
+from sysc import SysC
+
+def main():
+ """Generate a source manifest for a system"""
+ parser = argparse.ArgumentParser()
+
+ parser.add_argument("-s", "--system",
+ help="Generate source manifest for the specified systems",
+ choices=["sysa", "sysc"],
+ nargs="+",
+ action="extend",
+ required=True)
+
+ args = parser.parse_args()
+
+ if "sysa" in args.system:
+ print(SysA.get_source_manifest())
+
+ if "sysc" in args.system:
+ print(SysC.get_source_manifest())
+
+if __name__ == "__main__":
+ main()