{"id":13771468,"url":"https://github.com/python-formate/formate-black","last_synced_at":"2025-04-14T07:06:47.706Z","repository":{"id":38189965,"uuid":"368146741","full_name":"python-formate/formate-black","owner":"python-formate","description":"Use black with formate.","archived":false,"fork":false,"pushed_at":"2024-10-29T16:47:26.000Z","size":189,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-14T09:31:17.582Z","etag":null,"topics":["black","formate","formatting","linting","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/python-formate.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["domdfcoding"]}},"created_at":"2021-05-17T10:33:44.000Z","updated_at":"2024-10-08T18:25:01.000Z","dependencies_parsed_at":"2024-01-23T17:42:18.315Z","dependency_job_id":"c8b9467f-c66e-4c2c-a64b-fefb59e622e4","html_url":"https://github.com/python-formate/formate-black","commit_stats":{"total_commits":46,"total_committers":2,"mean_commits":23.0,"dds":0.4347826086956522,"last_synced_commit":"c49bb094a5c8d07b794ffe016243c51ff0abab74"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python-formate%2Fformate-black","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python-formate%2Fformate-black/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python-formate%2Fformate-black/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python-formate%2Fformate-black/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/python-formate","download_url":"https://codeload.github.com/python-formate/formate-black/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226806647,"owners_count":17685039,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["black","formate","formatting","linting","python"],"created_at":"2024-08-03T17:00:51.849Z","updated_at":"2025-04-14T07:06:47.682Z","avatar_url":"https://github.com/python-formate.png","language":"Python","readme":"==============\nformate-black\n==============\n\n.. start short_desc\n\n**Use black with formate.**\n\n.. end short_desc\n\n\n.. start shields\n\n.. list-table::\n\t:stub-columns: 1\n\t:widths: 10 90\n\n\t* - Tests\n\t  - |actions_linux| |actions_windows| |actions_macos| |coveralls|\n\t* - PyPI\n\t  - |pypi-version| |supported-versions| |supported-implementations| |wheel|\n\t* - Activity\n\t  - |commits-latest| |commits-since| |maintained| |pypi-downloads|\n\t* - QA\n\t  - |codefactor| |actions_flake8| |actions_mypy|\n\t* - Other\n\t  - |license| |language| |requires|\n\n.. |actions_linux| image:: https://github.com/python-formate/formate-black/workflows/Linux/badge.svg\n\t:target: https://github.com/python-formate/formate-black/actions?query=workflow%3A%22Linux%22\n\t:alt: Linux Test Status\n\n.. |actions_windows| image:: https://github.com/python-formate/formate-black/workflows/Windows/badge.svg\n\t:target: https://github.com/python-formate/formate-black/actions?query=workflow%3A%22Windows%22\n\t:alt: Windows Test Status\n\n.. |actions_macos| image:: https://github.com/python-formate/formate-black/workflows/macOS/badge.svg\n\t:target: https://github.com/python-formate/formate-black/actions?query=workflow%3A%22macOS%22\n\t:alt: macOS Test Status\n\n.. |actions_flake8| image:: https://github.com/python-formate/formate-black/workflows/Flake8/badge.svg\n\t:target: https://github.com/python-formate/formate-black/actions?query=workflow%3A%22Flake8%22\n\t:alt: Flake8 Status\n\n.. |actions_mypy| image:: https://github.com/python-formate/formate-black/workflows/mypy/badge.svg\n\t:target: https://github.com/python-formate/formate-black/actions?query=workflow%3A%22mypy%22\n\t:alt: mypy status\n\n.. |requires| image:: https://dependency-dash.repo-helper.uk/github/python-formate/formate-black/badge.svg\n\t:target: https://dependency-dash.repo-helper.uk/github/python-formate/formate-black/\n\t:alt: Requirements Status\n\n.. |coveralls| image:: https://img.shields.io/coveralls/github/python-formate/formate-black/master?logo=coveralls\n\t:target: https://coveralls.io/github/python-formate/formate-black?branch=master\n\t:alt: Coverage\n\n.. |codefactor| image:: https://img.shields.io/codefactor/grade/github/python-formate/formate-black?logo=codefactor\n\t:target: https://www.codefactor.io/repository/github/python-formate/formate-black\n\t:alt: CodeFactor Grade\n\n.. |pypi-version| image:: https://img.shields.io/pypi/v/formate-black\n\t:target: https://pypi.org/project/formate-black/\n\t:alt: PyPI - Package Version\n\n.. |supported-versions| image:: https://img.shields.io/pypi/pyversions/formate-black?logo=python\u0026logoColor=white\n\t:target: https://pypi.org/project/formate-black/\n\t:alt: PyPI - Supported Python Versions\n\n.. |supported-implementations| image:: https://img.shields.io/pypi/implementation/formate-black\n\t:target: https://pypi.org/project/formate-black/\n\t:alt: PyPI - Supported Implementations\n\n.. |wheel| image:: https://img.shields.io/pypi/wheel/formate-black\n\t:target: https://pypi.org/project/formate-black/\n\t:alt: PyPI - Wheel\n\n.. |license| image:: https://img.shields.io/github/license/python-formate/formate-black\n\t:target: https://github.com/python-formate/formate-black/blob/master/LICENSE\n\t:alt: License\n\n.. |language| image:: https://img.shields.io/github/languages/top/python-formate/formate-black\n\t:alt: GitHub top language\n\n.. |commits-since| image:: https://img.shields.io/github/commits-since/python-formate/formate-black/v0.2.0.post1\n\t:target: https://github.com/python-formate/formate-black/pulse\n\t:alt: GitHub commits since tagged version\n\n.. |commits-latest| image:: https://img.shields.io/github/last-commit/python-formate/formate-black\n\t:target: https://github.com/python-formate/formate-black/commit/master\n\t:alt: GitHub last commit\n\n.. |maintained| image:: https://img.shields.io/maintenance/yes/2025\n\t:alt: Maintenance\n\n.. |pypi-downloads| image:: https://img.shields.io/pypi/dm/formate-black\n\t:target: https://pypi.org/project/formate-black/\n\t:alt: PyPI - Downloads\n\n.. end shields\n\nInstallation\n--------------\n\n.. start installation\n\n``formate-black`` can be installed from PyPI.\n\nTo install with ``pip``:\n\n.. code-block:: bash\n\n\t$ python -m pip install formate-black\n\n.. end installation\n\nHooks\n--------\n\n``formate-black`` provides a single hook for formate_, which allows the black_ code formatter to be used.\n\n\n``black``\n^^^^^^^^^^\n\nCalls black_, using the given keyword arguments as its configuration.\n\nThis hook only takes keyword arguments.\n\nThe max line length can be provided via the ``line_length`` keyword argument\nor in the config_ table as ``line_length``.\n\nThe indent can also be set to tabs via the ``use_tabs`` keyword argument\nor in the config_ table as ``indent``.\n\n.. _formate: http://formate.readthedocs.io/\n.. _black: https://black.readthedocs.io/en/latest/\n.. _config: https://formate.readthedocs.io/en/latest/configuration.html#config\n\n\nExample Configuration\n^^^^^^^^^^^^^^^^^^^^^^^^\n\n.. code-block:: toml\n\n\t[hooks]\n\treformat-generics = 40\n\tcollections-import-rewrite = 20\n\tnoqa-reformat = 60\n\tellipsis-reformat = 70\n\n\t[hooks.black]\n\tpriority = 50\n\n\t[hooks.black.kwargs]\n\tstring_normalization = false\n\tmagic_trailing_comma = false\n\n\t[config]\n\tindent = \"\\t\"\n\tline_length = 115\n","funding_links":["https://github.com/sponsors/domdfcoding"],"categories":["Improvements and wrappers"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpython-formate%2Fformate-black","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpython-formate%2Fformate-black","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpython-formate%2Fformate-black/lists"}