Home
last modified time | relevance | path

Searched refs:yapf (Results 1 – 25 of 65) sorted by relevance

123

/external/yapf/yapftests/
Dmain_test.py20 import yapf
22 from yapf.yapflib import py3compat
79 orig_raw_import = yapf.py3compat.raw_input
80 yapf.py3compat.raw_input = patch_raw_input
83 yapf.py3compat.raw_input = orig_raw_import
94 yapf.run_main()
102 with self.assertRaisesRegexp(yapf.errors.YapfError,
104 yapf.main(['yapf', 'foo.c'])
110 ret = yapf.main([])
119 ret = yapf.main(['-', '--style=chromium'])
[all …]
Dyapf_test_helper.py20 from yapf.yapflib import blank_line_calculator
21 from yapf.yapflib import comment_splicer
22 from yapf.yapflib import continuation_splicer
23 from yapf.yapflib import identify_container
24 from yapf.yapflib import pytree_unwrapper
25 from yapf.yapflib import pytree_utils
26 from yapf.yapflib import pytree_visitor
27 from yapf.yapflib import split_penalty
28 from yapf.yapflib import style
29 from yapf.yapflib import subtype_assigner
Dreformatter_verify_test.py19 from yapf.yapflib import py3compat
20 from yapf.yapflib import reformatter
21 from yapf.yapflib import style
22 from yapf.yapflib import verifier
Dpytree_visitor_test.py18 from yapf.yapflib import py3compat
19 from yapf.yapflib import pytree_utils
20 from yapf.yapflib import pytree_visitor
Dformat_decision_state_test.py19 from yapf.yapflib import format_decision_state
20 from yapf.yapflib import pytree_utils
21 from yapf.yapflib import style
22 from yapf.yapflib import unwrapped_line
Dunwrapped_line_test.py22 from yapf.yapflib import format_token
23 from yapf.yapflib import split_penalty
24 from yapf.yapflib import unwrapped_line
Dblank_line_calculator_test.py19 from yapf.yapflib import reformatter
20 from yapf.yapflib import style
21 from yapf.yapflib import yapf_api
Dsplit_penalty_test.py22 from yapf.yapflib import pytree_utils
23 from yapf.yapflib import pytree_visitor
24 from yapf.yapflib import split_penalty
/external/yapf/yapf/yapflib/
Dyapf_api.py41 from yapf.yapflib import blank_line_calculator
42 from yapf.yapflib import comment_splicer
43 from yapf.yapflib import continuation_splicer
44 from yapf.yapflib import file_resources
45 from yapf.yapflib import identify_container
46 from yapf.yapflib import py3compat
47 from yapf.yapflib import pytree_unwrapper
48 from yapf.yapflib import pytree_utils
49 from yapf.yapflib import reformatter
50 from yapf.yapflib import split_penalty
[all …]
Dblank_line_calculator.py25 from yapf.yapflib import py3compat
26 from yapf.yapflib import pytree_utils
27 from yapf.yapflib import pytree_visitor
28 from yapf.yapflib import style
Dpytree_unwrapper.py34 from yapf.yapflib import pytree_utils
35 from yapf.yapflib import pytree_visitor
36 from yapf.yapflib import split_penalty
37 from yapf.yapflib import style
38 from yapf.yapflib import unwrapped_line
Didentify_container.py22 from yapf.yapflib import pytree_utils
23 from yapf.yapflib import pytree_visitor
/external/yapf/
DHACKING.rst6 $ PYTHONPATH=$PWD/yapf python -m yapf -i -r .
10 $ PYTHONPATH=$PWD/yapf python -m yapf -i $(git diff --name-only @{upstream})
18 * Bump version in yapf/__init__.py
22 * Check it looks OK, install it onto a virtualenv, run tests, run yapf as a tool
28 * Test in a clean virtualenv that 'pip install yapf' works with the new version
DMANIFEST.in3 include plugins/vim/autoload/yapf.vim plugins/vim/plugin/yapf.vim pylintrc
4 include .style.yapf tox.ini .travis.yml .vimrc
DREADME.rst5 .. image:: https://badge.fury.io/py/yapf.svg
6 :target: https://badge.fury.io/py/yapf
9 .. image:: https://travis-ci.org/google/yapf.svg?branch=master
10 :target: https://travis-ci.org/google/yapf
13 .. image:: https://coveralls.io/repos/google/yapf/badge.svg?branch=master
14 :target: https://coveralls.io/r/google/yapf?branch=master
39 Try out YAPF with this `online demo <https://yapf.now.sh>`_.
56 $ pip install yapf
75 $ PYTHONPATH=DIR python DIR/yapf [options] ...
94 usage: yapf [-h] [-v] [-d | -i] [-r | -l START-END] [-e PATTERN]
[all …]
Dsetup.py22 import yapf
45 version=yapf.__version__,
/external/grpc-grpc/tools/distrib/
Dyapf_code.sh37 "$PYTHON" -m pip install yapf==0.20.0
39 yapf() { function
44 $PYTHON -m yapf -i -r --style=setup.cfg -p "${exclusion_args[@]}" "${1}"
49 yapf "${dir}"
56 yapf "${tempdir}"
/external/yapf/plugins/
DREADME.rst9 found here: https://github.com/paetzke/py-yapf.el
21 Plug 'google/yapf', { 'rtp': 'plugins/vim', 'for': 'python' }
24 Plugin 'google/yapf', { 'rtp': 'plugins/vim' }
31 map <C-Y> :call yapf#YAPF()<cr>
32 imap <C-Y> <c-o>:call yapf#YAPF()<cr>
59 are committed to your local repository. Any changes ``yapf`` makes to the files
68 curl -o pre-commit.sh https://raw.githubusercontent.com/google/yapf/master/plugins/pre-commit.sh
76 Plugin for ``Textmate 2`` requires ``yapf`` Python package installed on your
81 pip install yapf
103 "$TPY" "/usr/local/bin/yapf" "$TM_FILEPATH"</string>
Dpre-commit.sh32 if [ -z $(which yapf) ]; then
67 yapf -i -r ${PYTHON_FILES[@]}
/external/yapf/plugins/vim/autoload/
Dyapf.vim20 " map <C-Y> :call yapf#YAPF()<cr>
21 " imap <C-Y> <c-o>:call yapf#YAPF()<cr>
23 function! yapf#YAPF() range
26 let l:cmd = 'yapf --lines=' . l:line_ranges
/external/yapf/yapf/
D__main__.py16 import yapf
18 yapf.run_main()
D__init__.py35 from yapf.yapflib import errors
36 from yapf.yapflib import file_resources
37 from yapf.yapflib import py3compat
38 from yapf.yapflib import style
39 from yapf.yapflib import yapf_api
/external/rust/crates/grpcio-sys/grpc/tools/distrib/
Dyapf_code.sh38 "$PYTHON" -m pip install yapf==0.28.0
40 $PYTHON -m yapf $ACTION --recursive --style=setup.cfg "${DIRS[@]}"
Dformat_bazel.sh26 "$PYTHON" -m pip install yapf==0.28.0
30 echo "${FILES}" | xargs "$PYTHON" -m yapf -i --style="${CONFIG_PATH}"
/external/brotli/python/
DREADME.md41 $ pip install yapf
53 [YAPF]: https://github.com/google/yapf
54 [YAPF usage]: https://github.com/google/yapf#usage

123