Exemplo n.º 1
0
    def run(self) -> None:
        """
        Checks module's filename.

        Skips modules that are checked as piped output.
        Since these modules are checked as a ``stdin`` input.
        And do not have names.
        """
        if self.filename != constants.STDIN:
            self.stem = get_stem(self.filename)
            self.visit_filename()
Exemplo n.º 2
0
 def _is_init(self) -> bool:
     return get_stem(self.filename) == constants.INIT
Exemplo n.º 3
0
 def _is_init(self) -> bool:
     return get_stem(self.filename) == INIT