From 460e497a3d15ca2c935f55778f6e67badfb6b931 Mon Sep 17 00:00:00 2001 From: Aditya Goel <48102515+adityagoel4512@users.noreply.github.com> Date: Thu, 13 Jun 2024 11:07:57 +0100 Subject: [PATCH] Delete scripts (#3) --- scripts/create_typing.sh | 5 ----- scripts/parse_test_report.py | 24 ------------------------ scripts/test.sh | 2 -- 3 files changed, 31 deletions(-) delete mode 100755 scripts/create_typing.sh delete mode 100644 scripts/parse_test_report.py delete mode 100755 scripts/test.sh diff --git a/scripts/create_typing.sh b/scripts/create_typing.sh deleted file mode 100755 index 63844e3..0000000 --- a/scripts/create_typing.sh +++ /dev/null @@ -1,5 +0,0 @@ -# Create concatenation of all signature files, removing the definitions of array -sed '$s/$/\n/' api-coverage-tests/array-api/spec/API_specification/signatures/*.py | sed '/^array = /d' > ndonnx/__init__.pyi - -# Create _types.py -echo "from ._array import Array as array\n$( ndonnx/_types.pyi diff --git a/scripts/parse_test_report.py b/scripts/parse_test_report.py deleted file mode 100644 index 464cf6f..0000000 --- a/scripts/parse_test_report.py +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright (c) QuantCo 2023-2024 -# SPDX-License-Identifier: BSD-3-Clause - -import argparse -import json - -if __name__ == "__main__": - parser = argparse.ArgumentParser() - parser.add_argument("report_json", help="Directory containing reports") - args = parser.parse_args() - - print(args.report_json) - with open(args.report_json) as f: - report = json.load(f) - - for test in report["tests"]: - print(test["nodeid"], test["outcome"]) - - # Print summary in readable format - print("Summary:") - print(f'- {report["summary"]["passed"]} passed') - print(f'- {report["summary"]["failed"]} failed') - print(f'- {report["summary"]["skipped"]} deselected') - print(f'- {report["summary"]["total"]} total') diff --git a/scripts/test.sh b/scripts/test.sh deleted file mode 100755 index 12afabe..0000000 --- a/scripts/test.sh +++ /dev/null @@ -1,2 +0,0 @@ -export ARRAY_API_TESTS_MODULE=ndonnx.testing && -pytest -n auto api-coverage-tests --json-report --json-report-file=api-coverage-tests.json