"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "client/commands/reporting.py" between
pyre-check-0.0.53.tar.gz and pyre-check-0.0.54.tar.gz

About: Pyre is a performant type checker for Python (ships with Pysa, a security focused static analysis tool).

reporting.py  (pyre-check-0.0.53):reporting.py  (pyre-check-0.0.54)
skipping to change at line 46 skipping to change at line 46
LOG.error("Found %d type error%s!", length, "s" if length > 1 else " ") LOG.error("Found %d type error%s!", length, "s" if length > 1 else " ")
else: else:
LOG.log(log.SUCCESS, "No type errors found") LOG.log(log.SUCCESS, "No type errors found")
if self._output == TEXT: if self._output == TEXT:
log.stdout.write("\n".join([repr(error) for error in errors])) log.stdout.write("\n".join([repr(error) for error in errors]))
else: else:
log.stdout.write(json.dumps([error.__dict__ for error in errors])) log.stdout.write(json.dumps([error.__dict__ for error in errors]))
def _get_directories_to_analyze(self) -> Set[str]: def _get_directories_to_analyze(self) -> Set[str]:
return self._analysis_directory.get_filter_roots() return self._analysis_directory.get_filter_roots() | set(
self._configuration.do_not_ignore_errors_in
)
@staticmethod @staticmethod
def _load_errors_from_json(json_output: str) -> List[Dict[str, Any]]: def _load_errors_from_json(json_output: str) -> List[Dict[str, Any]]:
try: try:
json_dictionary = json.loads(json_output) json_dictionary = json.loads(json_output)
except (json.JSONDecodeError): except (json.JSONDecodeError):
raise ClientException(f"Invalid JSON output: `{json_output}`.") raise ClientException(f"Invalid JSON output: `{json_output}`.")
error_list = [] error_list = []
if isinstance(json_dictionary, dict) and "errors" in json_dictionary: if isinstance(json_dictionary, dict) and "errors" in json_dictionary:
 End of changes. 1 change blocks. 
1 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)