{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/13"},{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance/3"}],"enrichment":{"capability":"A flake8 plugin that enforces trailing comma placement in Python code to reduce merge conflicts in multi-line dictionaries, lists, and function calls.","skillfed_tags":["linting","code-style","merge-conflict-prevention"],"use_cases":["Enforce trailing commas in team codebases to reduce merge conflicts when multiple developers modify adjacent lines in lists or dicts.","Catch accidental trailing commas that turn expressions into tuples (e.g., json_data = json.dumps({...}), becomes a tuple instead of the result).","Lint Python 3.5+ and 3.6+ codebases with version-specific comma rules by configuring which error codes to enforce.","Integrate comma style checking into CI/CD pipelines as part of flake8 without adding a separate tool.","Prevent bare tuple syntax errors and lambda parameter comma mistakes during code review."],"what_it_does":"flake8-commas is a linter plugin that checks trailing comma placement in Python code. It integrates directly into flake8 and runs as part of your normal linting workflow, reporting errors (C812\u2013C819) when commas are missing or incorrectly placed in multi-line structures. The plugin is designed to enforce consistent comma style across dictionaries, lists, function arguments, and tuples, which reduces merge conflicts when multiple developers edit the same data structures.\n\nThe plugin supports multiple Python versions with version-specific rules: different comma requirements apply to Python 2, Python 3, Python 3.5+, and Python 3.6+. It handles edge cases like bare tuples, lambda parameters, subscripts with slices, and function definitions with unpacking. The package is permissive (MIT license) and has low installation friction\u2014it's a pure Python wheel with only flake8 as a dependency.","worth_installing":"Yes, if you use flake8 and want to enforce trailing comma consistency to reduce merge conflicts. The plugin is lightweight, permissive, and integrates seamlessly. However, note that maintenance is aging (last release 820 days ago); if you need active support or compatibility with very recent Python/flake8 versions, consider black or add-trailing-comma as alternatives."},"id":"flake8-commas","links":{"html":"https://skillfed.io/packages/flake8-commas","md":"https://skillfed.io/packages/flake8-commas.md","pypi":"https://pypi.org/project/flake8-commas/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2024-05-16","license_spdx":null,"license_treatment":"permissive","name":"flake8-commas","python_support":"supports_current","summary":"Flake8 lint for trailing commas."},"popularity":{"monthly_downloads":310448,"position":7746,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"4.0.0"}
