def __init__(self, parser=BaseGraphCheckParser(), checks_dir=None): super().__init__(parser) self.checks = [] self.parser = parser self.checks_dir = checks_dir if checks_dir else \ os.path.join(os.path.dirname(os.path.dirname(__file__)), "checks", "graph_checks") self.logger = logging.getLogger(__name__)
def __init__( self, checks_dir: str, parser: BaseGraphCheckParser = BaseGraphCheckParser() ) -> None: super().__init__(parser) self.checks = [] self.parser = parser self.checks_dir = checks_dir self.logger = logging.getLogger(__name__)
def __init__(self, parser: BaseGraphCheckParser = BaseGraphCheckParser(), checks_dir: Optional[str] = None) -> None: super().__init__(parser) self.checks = [] self.parser = parser self.checks_dir = checks_dir if checks_dir else str(Path(__file__).parent.parent / "checks" / "graph_checks") self.logger = logging.getLogger(__name__)