"Fossies" - the Fresh Open Source Software Archive  

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

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

check.py  (pyre-check-0.0.54):check.py  (pyre-check-0.0.55)
skipping to change at line 73 skipping to change at line 73
self._original_directory, self._original_directory,
self._configuration.project_root, self._configuration.project_root,
filter_directory=self._command_arguments.filter_directory, filter_directory=self._command_arguments.filter_directory,
buck_mode=self._command_arguments.buck_mode, buck_mode=self._command_arguments.buck_mode,
isolate=True, isolate=True,
) )
def _flags(self) -> List[str]: def _flags(self) -> List[str]:
flags = super()._flags() flags = super()._flags()
filter_directories = self._get_directories_to_analyze() filter_directories = self._get_directories_to_analyze()
filter_directories.update(
set(self._configuration.get_existent_do_not_ignore_errors_in_paths()
)
)
if len(filter_directories): if len(filter_directories):
flags.extend(["-filter-directories", ";".join(sorted(filter_director ies))]) flags.extend(["-filter-directories", ";".join(sorted(filter_director ies))])
flags.extend(["-workers", str(self._configuration.number_of_workers)]) flags.extend(["-workers", str(self._configuration.number_of_workers)])
search_path = self._configuration.search_path + typeshed_search_path( search_path = self._configuration.search_path + typeshed_search_path(
self._configuration.typeshed self._configuration.typeshed
) )
if len(self._configuration.ignore_all_errors):
ignore_all_errors_paths = (
self._configuration.get_existent_ignore_all_errors_paths()
)
if len(ignore_all_errors_paths):
flags.extend( flags.extend(
[ ["-ignore-all-errors", ";".join(sorted(ignore_all_errors_paths))
"-ignore-all-errors", ]
";".join(sorted(self._configuration.ignore_all_errors)),
]
) )
if search_path: if search_path:
flags.extend(["-search-path", ",".join(search_path)]) flags.extend(["-search-path", ",".join(search_path)])
excludes = self._configuration.excludes excludes = self._configuration.excludes
for exclude in excludes: for exclude in excludes:
flags.extend(["-exclude", exclude]) flags.extend(["-exclude", exclude])
extensions = self._configuration.extensions extensions = self._configuration.extensions
for extension in extensions: for extension in extensions:
flags.extend(["-extension", extension]) flags.extend(["-extension", extension])
return flags return flags
 End of changes. 3 change blocks. 
5 lines changed or deleted 11 lines changed or added

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