How to use the radon.tools.iter_filenames function in radon

To help you get started, we’ve selected a few radon examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github rubik / xenon / xenon / core.py View on Github external
def _analyze_cc(self):
        import radon
        print radon.__version__
        import inspect
        print inspect.getsource(iter_filenames)
        for name in iter_filenames(self.args.path, self.args.exclude,
                                   self.args.ignore):
            with open(name) as fobj:
                yield name, cc_visit(fobj.read(),
                                     no_assert=self.args.no_assert)
github rubik / xenon / xenon / core.py View on Github external
def _analyze_cc(self):
        import radon
        print radon.__version__
        import inspect
        print inspect.getsource(iter_filenames)
        for name in iter_filenames(self.args.path, self.args.exclude,
                                   self.args.ignore):
            with open(name) as fobj:
                yield name, cc_visit(fobj.read(),
                                     no_assert=self.args.no_assert)