Python代码格式化工具YAPF.zip

时间:2022-08-06 06:43:45
【文件属性】:
文件名称:Python代码格式化工具YAPF.zip
文件大小:199KB
文件格式:ZIP
更新时间:2022-08-06 06:43:45
开源项目 YAPF 是 Google 开发的一个用来格式化 Python 代码的工具。使用方法:usage: yapf [-h] [--style STYLE] [-d | -i] [-l START-END | -r] ... Formatter for Python code. positional arguments:   files optional arguments:   -h, --help            show this help message and exit   --style STYLE         specify formatting style: either a style name (for                         example "pep8" or "google"), or the name of a file                         with style settings   -d, --diff            print the diff for the fixed source   -i, --in-place        make changes to files in place   -l START-END, --lines START-END                         range of lines to reformat, one-based   -r, --recursive       run recursively over directories 标签:YAPF
【文件预览】:
yapf-master
----.flake8(175B)
----.gitignore(1KB)
----setup.cfg(28B)
----yapf()
--------yapflib()
--------__init__.py(12KB)
--------__main__.py(680B)
----.style.yapf(65B)
----README.rst(28KB)
----.vimrc(167B)
----pylintrc(13KB)
----CONTRIBUTING.rst(2KB)
----LICENSE(11KB)
----HACKING.rst(888B)
----yapftests()
--------format_token_test.py(3KB)
--------comment_splicer_test.py(11KB)
--------style_test.py(11KB)
--------reformatter_basic_test.py(96KB)
--------yapf_test_helper.py(3KB)
--------format_decision_state_test.py(4KB)
--------reformatter_pep8_test.py(20KB)
--------reformatter_buganizer_test.py(84KB)
--------blank_line_calculator_test.py(9KB)
--------unwrapped_line_test.py(3KB)
--------main_test.py(4KB)
--------pytree_visitor_test.py(4KB)
--------utils.py(3KB)
--------reformatter_style_config_test.py(7KB)
--------__init__.py(596B)
--------pytree_utils_test.py(8KB)
--------line_joiner_test.py(3KB)
--------split_penalty_test.py(7KB)
--------pytree_unwrapper_test.py(9KB)
--------reformatter_python3_test.py(12KB)
--------file_resources_test.py(13KB)
--------reformatter_facebook_test.py(15KB)
--------reformatter_verify_test.py(3KB)
--------yapf_test.py(54KB)
--------subtype_assigner_test.py(11KB)
----.coveragerc(85B)
----AUTHORS(307B)
----plugins()
--------README.rst(3KB)
--------pre-commit.sh(3KB)
--------vim()
----MANIFEST.in(259B)
----CONTRIBUTORS(594B)
----setup.py(2KB)
----.travis.yml(952B)
----.editorconfig(265B)
----tox.ini(80B)
----CHANGELOG(31KB)

网友评论