Esempio 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()
            self._post_visit()
Esempio n. 2
0
 def _is_init(self) -> bool:
     return get_stem(self.filename) == constants.INIT