{"categories":[{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance/4"}],"enrichment":{"capability":"Automatically adds trailing commas to multi-line Python function calls, literals, definitions, imports, and class/type declarations, and can be run as a pre-commit hook.","skillfed_tags":["code-formatter","pre-commit","style-enforcement"],"use_cases":["Enforce consistent multi-line formatting across a Python project via pre-commit hooks.","Automatically reformat function calls and literals to add trailing commas for cleaner diffs.","Standardize function and class definitions to include trailing commas on the last parameter.","Unhug misaligned parentheses and braces to match project indentation style.","Maintain code style compliance in CI/CD pipelines without manual review."],"what_it_does":"add-trailing-comma is a code formatter that enforces a specific multi-line formatting style by automatically adding trailing commas to the last parameter or element in function calls, literals, definitions, imports, class declarations, and other multi-line constructs. It works as a standalone tool or integrates as a pre-commit hook to run on every commit.\n\nThe tool targets a style where trailing commas improve readability and minimize git diffs when parameters are added or removed\u2014each change affects only the lines being modified, preserving blame history. It handles function calls, tuple/list/dict/set literals, function and async function definitions, from-imports, class definitions, with statements, match statements, and PEP-695 type aliases. It also reformats hanging parentheses and braces to match indentation conventions.","worth_installing":"Yes. Low install friction, active maintenance, no security issues, and permissive MIT license. Useful for teams that want to enforce a specific trailing-comma style automatically. Install if your project or team values consistent multi-line formatting and wants to reduce manual code review overhead; skip if your codebase already uses a different formatter (e.g., Black) that handles trailing commas differently."},"id":"add-trailing-comma","links":{"html":"https://skillfed.io/packages/add-trailing-comma","md":"https://skillfed.io/packages/add-trailing-comma.md","pypi":"https://pypi.org/project/add-trailing-comma/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-10-10","license_spdx":null,"license_treatment":"permissive","name":"add-trailing-comma","python_support":"supports_current","summary":"Automatically add trailing commas to calls and literals"},"popularity":{"monthly_downloads":88391,"position":13732,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"4.0.0"}
