"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "client/source_database_buck_builder.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).

source_database_buck_builder.py  (pyre-check-0.0.53):source_database_buck_builder.py  (pyre-check-0.0.54)
skipping to change at line 40 skipping to change at line 40
def _get_buck_query_arguments( def _get_buck_query_arguments(
specifications: List[str], mode: Optional[str] specifications: List[str], mode: Optional[str]
) -> List[str]: ) -> List[str]:
mode_sublist = ["@mode/" + mode] if mode is not None else [] mode_sublist = ["@mode/" + mode] if mode is not None else []
return [ return [
"query", "query",
"--json", "--json",
*mode_sublist, *mode_sublist,
'kind("python_binary|python_library|python_test", "%s")' 'kind("python_binary|python_library|python_test", "%s")'
# Don't check generated rules. # Don't check generated rules.
" - attrfilter(labels, generated, %s)" " - attrfilter(labels, generated, '%s')"
# `python_unittest()` sources are separated into a macro-generated # `python_unittest()` sources are separated into a macro-generated
# library, so make sure we include those. # library, so make sure we include those.
" + attrfilter(labels, unittest-library, %s)" " + attrfilter(labels, unittest-library, '%s')"
# Provide an opt-out label so that rules can avoid type-checking (e.g. # Provide an opt-out label so that rules can avoid type-checking (e.g.
# some libraries wrap generated sources which are expensive to build # some libraries wrap generated sources which are expensive to build
# and therefore typecheck). # and therefore typecheck).
" - attrfilter(labels, no_pyre, %s)", " - attrfilter(labels, no_pyre, '%s')",
*specifications, *specifications,
] ]
def _normalize_specification(specification: str) -> str: def _normalize_specification(specification: str) -> str:
return specification if specification.startswith("//") else "//" + specifica tion return specification if specification.startswith("//") else "//" + specifica tion
def _ignore_target(target: str) -> bool: def _ignore_target(target: str) -> bool:
suffixes_for_ignored_targets = ("-mypy_ini", "-testmodules-lib") suffixes_for_ignored_targets = ("-mypy_ini", "-testmodules-lib")
return target.endswith(suffixes_for_ignored_targets) return target.endswith(suffixes_for_ignored_targets)
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

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