-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(HIS): add HIS checker to ci makefile
Signed-off-by: Afonso Santos <[email protected]>
- Loading branch information
1 parent
ac55279
commit 5539cb0
Showing
2 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,30 @@ | ||
#!/bin/python3 | ||
|
||
# wip | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Copyright (c) Bao Project and Contributors. All rights reserved | ||
|
||
""" | ||
Generating HIS metrics check | ||
""" | ||
|
||
import sys | ||
import argparse | ||
|
||
METRIC_FAIL = 0 | ||
|
||
def process_metric(filenames): | ||
|
||
"""Process each file.""" | ||
print("Checking X metric") | ||
for file in filenames.files: | ||
print(file) | ||
|
||
if __name__ == "__main__": | ||
PARSER = argparse.ArgumentParser() | ||
PARSER.add_argument("files", nargs="+", help="The files to process") | ||
ARGS = PARSER.parse_args() | ||
|
||
process_metric(ARGS) | ||
|
||
if METRIC_FAIL: | ||
sys.exit(-1) |