(self)
| 112 | return matching |
| 113 | |
| 114 | def check_stderr(self): |
| 115 | def output_okay(out): |
| 116 | for warning in ['[notice]', 'WARNING:', 'npm WARN', |
| 117 | 'npm notice', 'DEPRECATION:', 'Creating virtualenv', |
| 118 | 'config file not found:', 'press [Y]']: |
| 119 | if out.startswith(warning): |
| 120 | return True |
| 121 | return False |
| 122 | for e in self.stderr: |
| 123 | if len(e) < 1: |
| 124 | continue |
| 125 | # Don't err on verbosity from pip, npm |
| 126 | if not output_okay(e): |
| 127 | raise Exception(f'reckless stderr contains `{e}`') |
| 128 | |
| 129 | |
| 130 | def reckless(cmds: list, dir: PosixPath = None, |
no outgoing calls
no test coverage detected