Lines Matching +full:python +full:- +full:pathlib
8 # http://www.apache.org/licenses/LICENSE-2.0
21 import pathlib
26 ASUITE_HOME = pathlib.Path(__file__).resolve().parent
29 def _filter_python_files(files: list[pathlib.Path]) -> list[pathlib.Path]:
30 """Filter a list of files and return a new list of python files only."""
34 def _check_run_shell_command(cmd: str, cwd: str = None) -> None:
41 def _run_python_lint(lint_bin: str, files: list[pathlib.Path]) -> None:
42 """Run python lint binary on python files."""
66 def _run_pylint(files: list[pathlib.Path]) -> None:
67 """Run pylint on python files."""
71 def _run_gpylint(files: list[pathlib.Path]) -> None:
72 """Run gpylint on python files if gpylint is available."""
84 def _run_pyformat(files: list[pathlib.Path]) -> None:
95 shlex.split('pyformat --force_quote_type single ' + file.as_posix()),
103 'pyformat -i --force_quote_type single ' + file.as_posix()
124 def _run_legacy_unittests() -> None:
133 files: list[pathlib.Path], projects: list[str], root_files: bool
134 ) -> tuple[list[pathlib.Path], list[pathlib.Path]]:
163 def get_preupload_files() -> list[pathlib.Path]:
173 cmd = "git status --short | egrep [ARM] | awk '{print $NF}'"
175 cmd, shell=True, encoding='utf-8'
180 pathlib.Path(file).resolve() for file in files_to_upload