{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/3"},{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance"}],"enrichment":{"capability":"YAPF automatically reformats Python code to conform to a specified style guide, calculating the best formatting that matches your chosen style.","skillfed_tags":["code-formatter","style-enforcement","cli-tool"],"use_cases":["Enforce consistent code style across a team or project without manual review of formatting details.","Integrate into a CI/CD pipeline to verify that code has been formatted correctly before merging.","Reformat legacy Python code to a modern style guide in bulk.","Use as a library in an IDE or editor plugin to format code on save or on demand.","Configure custom formatting rules for a project and apply them consistently to all Python files."],"what_it_does":"YAPF is a Python code formatter that automatically rewrites code to match a configured style, based on the clang-format algorithm. Rather than enforcing rules line-by-line, it analyzes the entire code structure and calculates the best formatting that conforms to your chosen style. It supports predefined styles (pep8, google, yapf, facebook) and custom configurations via .style.yapf, setup.cfg, or pyproject.toml files.\n\nYou can use YAPF as a command-line tool to format files in place, print diffs, or run recursively over directories, or as a Python library by importing FormatCode and FormatFile from yapf.yapflib.yapf_api. It requires Python 3.7 or later and integrates with many editors via community plugins.","worth_installing":"Yes. YAPF is actively maintained with low install friction, permissive licensing, and no known vulnerabilities. Install it if you want automatic, style-guide-compliant code formatting in your workflow\u2014either as a standalone tool or integrated into your development environment."},"id":"yapf","links":{"html":"https://skillfed.io/packages/yapf","md":"https://skillfed.io/packages/yapf.md","pypi":"https://pypi.org/project/yapf/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2024-11-14","license_spdx":null,"license_treatment":"permissive","name":"yapf","python_support":"supports_current","summary":"A formatter for Python code"},"popularity":{"monthly_downloads":9155087,"position":1557,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.43.0"}
