From 10878ed89460193b79c3241e7d2d3f80c91350dd Mon Sep 17 00:00:00 2001 From: Robin Bryce Date: Thu, 12 Dec 2024 14:23:20 +0000 Subject: [PATCH] fix the code quality infra --- Taskfile.yml | 2 +- tests/test_verify_receipt.py | 1 - tests/test_verify_receipt_bad_options.py | 13 ------------- 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/Taskfile.yml b/Taskfile.yml index fe634d5..e115585 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -61,8 +61,8 @@ tasks: source {{ .VENV_DIR }}/bin/activate trap deactivate EXIT - ruff format {{ .PACKAGE_NAME }} tests black {{ .PACKAGE_NAME }} tests + ruff check {{ .PACKAGE_NAME }} tests --fix test: desc: Run simple tests diff --git a/tests/test_verify_receipt.py b/tests/test_verify_receipt.py index 1795726..f2fca36 100644 --- a/tests/test_verify_receipt.py +++ b/tests/test_verify_receipt.py @@ -8,7 +8,6 @@ import unittest import shutil import tempfile -import unittest from contextlib import redirect_stdout from datatrails_scitt_samples.datatrails.servicecontext import ServiceContext diff --git a/tests/test_verify_receipt_bad_options.py b/tests/test_verify_receipt_bad_options.py index 55effd8..8533185 100644 --- a/tests/test_verify_receipt_bad_options.py +++ b/tests/test_verify_receipt_bad_options.py @@ -3,23 +3,10 @@ """ import os -import json -import io import unittest import shutil import tempfile -import unittest -from contextlib import redirect_stdout -from datatrails_scitt_samples.scripts.generate_example_key import ( - main as generate_example_key, -) -from datatrails_scitt_samples.scripts.create_hashed_signed_statement import ( - main as create_hashed_signed_statement, -) -from datatrails_scitt_samples.scripts.register_signed_statement import ( - main as register_signed_statement, -) from datatrails_scitt_samples.scripts.verify_receipt import ( main as verify_receipt, )