Skip to content

Commit 2b59cae

Browse files
committed
Remove patch.py and --stats-report flag from maintenance.py
1 parent bef63f4 commit 2b59cae

File tree

2 files changed

+0
-64
lines changed

2 files changed

+0
-64
lines changed

tools/maintenance.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
# Local import
88
import report
99
import parse
10-
import patch
1110
import check
1211
import filter_checker
1312

@@ -87,7 +86,6 @@ def main():
8786
arg_parser.add_argument('-l', '--link', metavar='URL', action='store', type=str, help='Specify URL to github actions report. Added when patching sources files with --instructions')
8887
arg_parser.add_argument('-p', '--patch', action='store_true', help='Patch categories _index.md with results when using --filter-checker')
8988
arg_parser.add_argument('-t', '--type', metavar='REPORT', action='store', default='all', type=str, help='Specify report type detailing the closed filter status when using --filter-checker. Can be either \'all\', \'subjects\', \'softwares\', \'oses\', \'tools\'')
90-
arg_parser.add_argument('-sr', '--stats-report', action='store_true', help='Added when patching statistics file with --instructions')
9189

9290
arg_group = arg_parser.add_mutually_exclusive_group()
9391
arg_group.add_argument('-f', '--filter-checker', action='store_true', help='Validates the correct closed schema filters are being used, reports any errors, and optionally updates _index.md files for each learning path category to reflect the currently supported filters.')
@@ -154,9 +152,6 @@ def main():
154152
results_dict = check_lp(args.instructions, args.link, args.debug)
155153
else:
156154
logging.error("-i/--instructions expects a .md file, a CSV with a list of files or a Learning Path directory")
157-
if args.stats_report:
158-
# If all test results are zero, all tests have passed
159-
patch.patch(args.instructions, results_dict, args.link)
160155
if results_dict is not None:
161156
if all(results_dict.get(k) for k in results_dict):
162157
# Errors exist

tools/patch.py

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)