vermin: remove all novm comments from code (#34308)

All the vermin annotations we were using were for optional features introduced in early
Python 3 versions. We no longer need any of them, as we only support Python 3.6+. If we
start optionally using features from newer Pythons than 3.6, we will need more vermin
annotations.

Co-authored-by: Harmen Stoppels <harmenstoppels@gmail.com>

Co-authored-by: Harmen Stoppels <harmenstoppels@gmail.com>
This commit is contained in:
Todd Gamblin 2022-12-05 07:59:27 -08:00 committed by GitHub
parent 1670c325c6
commit 54008a2342
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
23 changed files with 26 additions and 26 deletions

View File

@ -7,7 +7,7 @@
import os.path
import stat
import subprocess
from typing import List # novm
from typing import List
import llnl.util.filesystem as fs
import llnl.util.tty as tty

View File

@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import inspect
from typing import List # novm
from typing import List
import llnl.util.filesystem as fs

View File

@ -4,7 +4,7 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import inspect
import os
from typing import List # novm
from typing import List
import llnl.util.filesystem as fs

View File

@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import inspect
from typing import List # novm
from typing import List
import llnl.util.filesystem as fs

View File

@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from typing import Callable, Dict # novm
from typing import Callable, Dict
import spack.cmd.modules.lmod
import spack.cmd.modules.tcl

View File

@ -10,7 +10,7 @@
import re
import shutil
import tempfile
from typing import List, Optional, Sequence # novm
from typing import List, Optional, Sequence
import llnl.util.lang
import llnl.util.tty as tty

View File

@ -10,7 +10,7 @@
import itertools
import multiprocessing.pool
import os
from typing import Dict # novm
from typing import Dict
import archspec.cpu

View File

@ -8,7 +8,7 @@
import subprocess
import sys
from distutils.version import StrictVersion
from typing import Dict, List, Set # novm
from typing import Dict, List, Set
import spack.compiler
import spack.operating_systems.windows_os

View File

@ -4,7 +4,7 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import os
from typing import List # novm
from typing import List
import spack.compiler

View File

@ -36,7 +36,7 @@
import re
import sys
from contextlib import contextmanager
from typing import List # novm
from typing import List
import ruamel.yaml as yaml
from ruamel.yaml.error import MarkedYAMLError

View File

@ -26,7 +26,7 @@
import socket
import sys
import time
from typing import Dict # novm
from typing import Dict
try:
import uuid

View File

@ -32,7 +32,7 @@ class OpenMpi(Package):
import functools
import os.path
import re
from typing import List, Set # novm
from typing import List, Set
import llnl.util.lang
import llnl.util.tty.color

View File

@ -30,7 +30,7 @@
import shutil
import sys
import urllib.parse
from typing import List, Optional # novm
from typing import List, Optional
import llnl.util
import llnl.util.filesystem as fs

View File

@ -34,7 +34,7 @@
import inspect
import os.path
import re
from typing import Optional # novm
from typing import Optional
import llnl.util.filesystem
import llnl.util.tty as tty

View File

@ -7,7 +7,7 @@
import itertools
import os.path
import posixpath
from typing import Any, Dict # novm
from typing import Any, Dict
import llnl.util.lang as lang

View File

@ -8,7 +8,7 @@
"""
import posixpath
import string
from typing import Any, Dict # novm
from typing import Any, Dict
import llnl.util.tty as tty

View File

@ -27,7 +27,7 @@
import traceback
import types
import warnings
from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple, Type # novm
from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple, Type
import llnl.util.filesystem as fsys
import llnl.util.tty as tty

View File

@ -9,7 +9,7 @@
import errno
import functools
import importlib
import importlib.machinery # novm
import importlib.machinery
import importlib.util
import inspect
import itertools
@ -24,7 +24,7 @@
import traceback
import types
import uuid
from typing import Dict # novm
from typing import Dict
import ruamel.yaml as yaml
@ -79,7 +79,7 @@ def namespace_from_fullname(fullname):
return namespace
class _PrependFileLoader(importlib.machinery.SourceFileLoader): # novm
class _PrependFileLoader(importlib.machinery.SourceFileLoader):
def __init__(self, fullname, path, prepend=None):
super(_PrependFileLoader, self).__init__(fullname, path)
self.prepend = prepend
@ -144,7 +144,7 @@ def find_spec(self, fullname, python_path, target=None):
loader = self.compute_loader(fullname)
if loader is None:
return None
return importlib.util.spec_from_loader(fullname, loader) # novm
return importlib.util.spec_from_loader(fullname, loader)
def compute_loader(self, fullname):
# namespaces are added to repo, and package modules are leaves.

View File

@ -14,7 +14,7 @@
import stat
import sys
import tempfile
from typing import Dict # novm
from typing import Dict
import llnl.util.lang
import llnl.util.tty as tty

View File

@ -4,7 +4,7 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import itertools
import textwrap
from typing import List # novm
from typing import List
import llnl.util.lang

View File

@ -91,7 +91,7 @@ def test_module_suffixes(module_suffixes_schema):
["compilers", "config", "env", "merged", "mirrors", "modules", "packages", "repos"],
)
def test_schema_validation(meta_schema, config_name):
import importlib # novm
import importlib
module_name = "spack.schema.{0}".format(config_name)
module = importlib.import_module(module_name)

View File

@ -5,7 +5,7 @@
"""Simple wrapper around JSON to guarantee consistent use of load/dump. """
import json
from typing import Any, Dict, Optional # novm
from typing import Any, Dict, Optional
import spack.error

View File

@ -17,7 +17,7 @@
import ctypes
import io
import re
from typing import List # novm
from typing import List
import ruamel.yaml as yaml
from ruamel.yaml import RoundTripDumper, RoundTripLoader