Some of these have been fixed already, fix the rest.
try:
import yaml
-# pylint: disable=bare-except
-except:
+except ImportError:
print("No python yaml module, skipping")
sys.exit(1)
return command
def run(self):
- # pylint: disable=consider-using-with
with open(os.devnull, "w", encoding="utf-8") as devnull:
- self.sub_process = subprocess.Popen(
+ self.sub_process = subprocess.Popen( # pylint: disable=consider-using-with
self.get_command(), shell=True, stdout=devnull
)
from collections import ChainMap
-# pylint: enable=import-error
from .algorithms import ALG_VARS, CRYPTO_SUPPORTED_VARS
from .basic import BASIC_VARS
-
-# pylint: disable=import-error
from .build import BUILD_VARS # type: ignore
from .dirs import DIR_VARS
from .features import FEATURE_VARS
import os
-# pylint: disable=import-error
from .build import BUILD_VARS # type: ignore
-# pylint: enable=import-error
-
-
BASIC_VARS = {
"ARPANAME": f"{BUILD_VARS['TOP_BUILDDIR']}/arpaname",
"CDS": f"{BUILD_VARS['TOP_BUILDDIR']}/dnssec-cds",
import os
-# pylint: disable=import-error
from .build import BUILD_VARS, SYSTEM_TEST_DIR_GIT_PATH # type: ignore
-# pylint: enable=import-error
-
-
DIR_VARS = {
"builddir": f"{BUILD_VARS['TOP_BUILDDIR']}/{SYSTEM_TEST_DIR_GIT_PATH}",
"srcdir": f"{BUILD_VARS['TOP_SRCDIR']}/{SYSTEM_TEST_DIR_GIT_PATH}",
assert Re("Found token (.*) with matching token label") in cmd.out
-# pylint: disable-msg=too-many-locals
@pytest.mark.parametrize(
"alg_name,alg_type,alg_bits",
[
# collect keys that should be in this bundle
# collect lines that should be in this bundle
bundle_keys.append(key)
- # pylint: disable=unused-variable
for _arg in expected_cds:
bundle_lines.append(lines[line_no])
line_no += 1
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
import shutil
import time
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
import os
import dns
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
import os
import time
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
import shutil
from nsec3.common import NSEC3_MARK, check_nsec3_case
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
import os
import dns
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
from datetime import timedelta
import os
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
import pytest
from isctest.util import param
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
import pytest
from isctest.kasp import KeyTimingMetadata
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=unused-import
-
import pytest
from isctest.util import param
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
import pytest
from isctest.kasp import KeyTimingMetadata
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
from datetime import timedelta
import pytest
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
from datetime import timedelta
import pytest
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
from rollover.common import CDSS, DEFAULT_CONFIG, ROLLOVER_MARK
import isctest
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
import pytest
from isctest.kasp import Ipub, IpubC, Iret
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
import pytest
from rollover.common import CDSS, DURATION, ROLLOVER_MARK, UNSIGNING_CONFIG
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
import pytest
from rollover.common import (
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
from datetime import timedelta
from isctest.kasp import KeyTimingMetadata
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
from datetime import timedelta
import pytest
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
import pytest
from isctest.util import param
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
import pytest
from isctest.util import param
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
from datetime import timedelta
import os
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
import pytest
from rollover.common import CDSS, DEFAULT_CONFIG, DURATION, ROLLOVER_MARK
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
import pytest
from rollover.common import CDSS, DEFAULT_CONFIG, DURATION, ROLLOVER_MARK
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
from datetime import timedelta
import pytest
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=unused-variable
-
import socket
import struct
import time
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=unused-variable
-
import socket
import time
import dns.rdatatype
import pytest
-import isctest.mark # pylint: disable=import-error
+import isctest.mark
pytestmark = pytest.mark.extra_artifacts(
[
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=unused-variable
-
import socket
import time
# -- Project information -----------------------------------------------------
project = "BIND 9"
-# pylint: disable=redefined-builtin
copyright = "2023, Internet Systems Consortium"
author = "Internet Systems Consortium"
# -- Project information -----------------------------------------------------
project = "BIND 9"
-# pylint: disable=wrong-import-position
import datetime
year = datetime.datetime.now().year
-# pylint: disable=redefined-builtin
copyright = "%d, Internet Systems Consortium" % year
author = "Internet Systems Consortium"
# The master toctree document.
master_doc = "index"
-# pylint: disable=line-too-long
man_pages = [
(
"arpaname",