for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
import abc
from typing import TypeVar
from pocketutils.core.exceptions import XValueError
from mandos.model.apis.hmdb_api import HmdbApi
from mandos.model.hits import AbstractHit
from mandos.model.searches import Search
H = TypeVar("H", bound=AbstractHit, covariant=True)
This check looks for invalid names for a range of different identifiers.
You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.
If your project includes a Pylint configuration file, the settings contained in that file take precedence.
To find out more about Pylint, please refer to their site.
class HmdbSearch(Search[H], metaclass=abc.ABCMeta):
def __init__(self, key: str, api: HmdbApi):
if api is None:
raise XValueError(f"{self.__class__.__name__} got a null API")
super().__init__(key)
self.api = api
__all__ = ["HmdbSearch"]