--- id: yamlfix version: "1.19.1" license: GPL-3.0-only license_treatment: copyleft maintenance: aging --- # yamlfix — A simple opionated yaml formatter that keeps your comments! License: copyleft · Maintenance: aging · Downloads: 1.1M/mo ## What it is and what it does yamlfix is a YAML formatter designed to reformat YAML files consistently while keeping your comments intact—a feature many formatters lose. It runs as a command-line tool and depends on click for CLI handling, ruyaml for YAML parsing, maison for configuration, and pydantic for validation. The package targets developers working with YAML configuration files who want automated formatting without losing inline documentation. The project is in production/stable status and supports Python 3.9, 3.10, and 3.11. With over 1 million monthly downloads, it ranks in the top 5000 PyPI packages. The aging maintenance status reflects a 239-day gap since the last release, but the repository remains active and unarchived, indicating the tool is mature and not under active development rather than abandoned. Use it for: - Automatically format YAML configuration files in CI/CD pipelines while preserving inline comments. - Enforce consistent YAML style across a team's infrastructure-as-code or Kubernetes manifests. - Pre-commit hook to standardize YAML formatting before committing configuration files. - Batch reformat existing YAML files to a consistent style without losing documentation. - Integrate into linting workflows alongside other code quality tools for configuration files. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. yamlfix is a command-line YAML formatter that reformats YAML files according to an opinionated style while preserving comments. Yes, if you need YAML formatting with comment preservation and accept GPLv3 licensing. The low install friction, stable maturity, and high download volume indicate a reliable tool. The aging maintenance is not a blocker for a stable formatter, but verify that the opinionated style matches your team's needs before adopting it widely. ## Install pip install yamlfix uv add yamlfix poetry add yamlfix ## Installing yamlfix Before you install: Low install friction with four straightforward runtime dependencies. Maintenance status is aging—last release was 239 days ago—but the repository remains active and not archived, suggesting the project is stable rather than abandoned. License in practice: GPLv3 is a copyleft license; any derivative work or modification must also be licensed under GPLv3. If you are building proprietary software or have license compatibility constraints, this may restrict your use. Quickstart: pip install yamlfix import yamlfix formatted = yamlfix.fix_yaml(yaml_content) Requires Python 3.9.1 or later. Verify before relying: - Whether yamlfix can be used as a library API (the snippet assumes it, but the fact sheet emphasizes command-line usage). - What specific formatting rules the 'opinionated' style enforces and whether they are configurable. ## Package facts - License: GPL-3.0-only (copyleft) - Python support: supports_current - Install friction: low - Maintenance: aging - Downloads: 1.1M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags yaml formatter, yaml linter, format yaml files, yaml style checker, yaml code formatter, yaml beautifier, yaml comment preserving, yaml-formatting, cli-tool, configuration-management [View on SkillFed](https://skillfed.io/packages/yamlfix) · [View on PyPI](https://pypi.org/project/yamlfix/)