diff --git a/qcfractal/qcfractal/components/serverinfo/test_access_socket.py b/qcfractal/qcfractal/components/serverinfo/test_access_socket.py index f902674a8..7ca4e1ef1 100644 --- a/qcfractal/qcfractal/components/serverinfo/test_access_socket.py +++ b/qcfractal/qcfractal/components/serverinfo/test_access_socket.py @@ -1,7 +1,6 @@ from __future__ import annotations import ipaddress -from typing import TYPE_CHECKING import pytest @@ -11,9 +10,6 @@ from qcportal.serverinfo.models import AccessLogQueryFilters from qcportal.utils import now_at_utc -if TYPE_CHECKING: - pass - # First part of the tuple is the ip address # second is the range, as stored in the MaxMind test JSON file test_ips = [ diff --git a/qcfractal/qcfractal/components/test_record_client.py b/qcfractal/qcfractal/components/test_record_client.py index 3c218dd25..470962aea 100644 --- a/qcfractal/qcfractal/components/test_record_client.py +++ b/qcfractal/qcfractal/components/test_record_client.py @@ -3,8 +3,6 @@ """ from __future__ import annotations -from typing import TYPE_CHECKING - import pytest from qcarchivetesting import test_users @@ -26,9 +24,6 @@ from qcportal.record_models import PriorityEnum, RecordStatusEnum from qcportal.utils import now_at_utc -if TYPE_CHECKING: - pass - def test_record_client_get(snowflake: QCATestingSnowflake): storage_socket = snowflake.get_storage_socket() diff --git a/qcfractal/qcfractal/components/test_record_client_waiting_reason.py b/qcfractal/qcfractal/components/test_record_client_waiting_reason.py index 8bceefaa4..676fff649 100644 --- a/qcfractal/qcfractal/components/test_record_client_waiting_reason.py +++ b/qcfractal/qcfractal/components/test_record_client_waiting_reason.py @@ -4,7 +4,6 @@ from __future__ import annotations import re -from typing import TYPE_CHECKING from qcarchivetesting.testing_classes import QCATestingSnowflake from qcfractal.components.optimization.testing_helpers import load_test_data as load_opt_test_data @@ -15,9 +14,6 @@ from qcportal.managers import ManagerName from qcportal.record_models import PriorityEnum -if TYPE_CHECKING: - pass - def test_record_client_waiting_reason(snowflake: QCATestingSnowflake): storage_socket = snowflake.get_storage_socket() diff --git a/qcfractal/qcfractal/testing_helpers.py b/qcfractal/qcfractal/testing_helpers.py index f604bacb2..d10958317 100644 --- a/qcfractal/qcfractal/testing_helpers.py +++ b/qcfractal/qcfractal/testing_helpers.py @@ -27,7 +27,6 @@ class DummyJobProgress: def __init__(self): self._runner_uuid = "1234-5678-9101-1213" - pass def update_progress(self, progress: int): pass diff --git a/qcfractalcompute/qcfractalcompute/executors.py b/qcfractalcompute/qcfractalcompute/executors.py index 7aa4ee412..965f09726 100644 --- a/qcfractalcompute/qcfractalcompute/executors.py +++ b/qcfractalcompute/qcfractalcompute/executors.py @@ -183,6 +183,5 @@ def build_executor(executor_label: str, executor_config: ExecutorConfig) -> Pars self.tag_executor_map[tag] = ex.label self.executor_config_map[ex.label] = executor_config - pass else: raise ValueError("Unknown executor type: {}".format(executor_config.type)) diff --git a/qcportal/qcportal/reaction/record_models.py b/qcportal/qcportal/reaction/record_models.py index 51f00b79d..ee33e3a70 100644 --- a/qcportal/qcportal/reaction/record_models.py +++ b/qcportal/qcportal/reaction/record_models.py @@ -23,8 +23,6 @@ class Config: pass # extra = Extra.forbid - pass - class ReactionSpecification(BaseModel): class Config: