diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 14e81ed0..15a840b0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,9 +1,9 @@ repos: - repo: https://github.com/psf/black - rev: 22.12.0 + rev: 23.7.0 hooks: - id: black - repo: https://github.com/pycqa/flake8 - rev: 6.0.0 + rev: 6.1.0 hooks: - id: flake8 \ No newline at end of file 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: