From 387a24d9f104007be509c4191a7808a5940a0f0f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 1 Aug 2023 05:25:05 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- server/autotest_server/config.py | 1 - server/autotest_server/testers/java/java_tester.py | 1 - server/autotest_server/testers/py/lib/sql_helper.py | 1 - server/autotest_server/testers/pyta/pyta_tester.py | 1 - server/autotest_server/testers/racket/racket_tester.py | 1 - 5 files changed, 5 deletions(-) diff --git a/server/autotest_server/config.py b/server/autotest_server/config.py index c6893cf8..6a4a6ee6 100644 --- a/server/autotest_server/config.py +++ b/server/autotest_server/config.py @@ -14,7 +14,6 @@ class _Config: - _replacement_pattern: ClassVar[Pattern] = re.compile(r".*?\${(\w+)}.*?") _not_found_key: ClassVar[str] = "" diff --git a/server/autotest_server/testers/java/java_tester.py b/server/autotest_server/testers/java/java_tester.py index 9222dff8..8b753d20 100644 --- a/server/autotest_server/testers/java/java_tester.py +++ b/server/autotest_server/testers/java/java_tester.py @@ -30,7 +30,6 @@ def run(self): class JavaTester(Tester): - JUNIT_TESTER_JAR = os.path.join(os.path.dirname(__file__), "lib", "junit-platform-console-standalone.jar") JUNIT_JUPITER_RESULT = "TEST-junit-jupiter.xml" JUNIT_VINTAGE_RESULT = "TEST-junit-vintage.xml" diff --git a/server/autotest_server/testers/py/lib/sql_helper.py b/server/autotest_server/testers/py/lib/sql_helper.py index b664d029..70f69fe9 100644 --- a/server/autotest_server/testers/py/lib/sql_helper.py +++ b/server/autotest_server/testers/py/lib/sql_helper.py @@ -144,7 +144,6 @@ def execute_psql_file( class PSQLTest: - connection: ClassVar[Optional[ConnectionType]] = None SCHEMA_COPY_STR = """ diff --git a/server/autotest_server/testers/pyta/pyta_tester.py b/server/autotest_server/testers/pyta/pyta_tester.py index 584e5a4b..767f9f57 100644 --- a/server/autotest_server/testers/pyta/pyta_tester.py +++ b/server/autotest_server/testers/pyta/pyta_tester.py @@ -14,7 +14,6 @@ class PytaReporter(python_ta.reporters.json_reporter.JSONReporter, python_ta.rep class PytaTest(Test): - ERROR_MSGS = {"reported": "{} error(s)"} def __init__( diff --git a/server/autotest_server/testers/racket/racket_tester.py b/server/autotest_server/testers/racket/racket_tester.py index d579baa6..fc844923 100644 --- a/server/autotest_server/testers/racket/racket_tester.py +++ b/server/autotest_server/testers/racket/racket_tester.py @@ -36,7 +36,6 @@ def run(self) -> str: class RacketTester(Tester): - ERROR_MSGS = {"bad_json": "Unable to parse test results: {}"} def __init__(self, specs, test_class: Type[RacketTest] = RacketTest) -> None: