{"id":16668629,"url":"https://github.com/csurfer/sublime_black","last_synced_at":"2025-08-12T21:12:20.761Z","repository":{"id":143283532,"uuid":"131671486","full_name":"csurfer/sublime_black","owner":"csurfer","description":"Sublime Text package to format python code using black formatter.","archived":false,"fork":false,"pushed_at":"2018-10-23T12:16:52.000Z","size":16,"stargazers_count":60,"open_issues_count":4,"forks_count":6,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-18T03:22:14.419Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/csurfer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2018-05-01T03:13:45.000Z","updated_at":"2024-01-03T14:15:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"d4f4cc18-10f5-45cd-a9ab-a250bcf80ccb","html_url":"https://github.com/csurfer/sublime_black","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csurfer%2Fsublime_black","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csurfer%2Fsublime_black/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csurfer%2Fsublime_black/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csurfer%2Fsublime_black/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csurfer","download_url":"https://codeload.github.com/csurfer/sublime_black/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244838667,"owners_count":20518863,"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":[],"created_at":"2024-10-12T11:26:13.228Z","updated_at":"2025-03-21T17:32:29.235Z","avatar_url":"https://github.com/csurfer.png","language":"Python","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026business=3BSBW7D45C4YN\u0026lc=US\u0026currency_code=USD\u0026bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted"],"categories":[],"sub_categories":[],"readme":"# sublime_black\n\n[![Licence](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/csurfer/sublime_black/master/LICENSE)\n[![Thanks](https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg)](https://saythanks.io/to/csurfer)\n\nSublimeText3 package to format python code using black formatter.\n\n![Demo](https://i.imgur.com/10aO24T.gif)\n\n## Features\n\n* **Black: Diff** to see the changes that would be done to the file.\n* **Black: Format** to format the file in place using [black](https://github.com/ambv/black).\n\n## Prerequisites\n\n* Install [black](https://github.com/ambv/black) and ensure you can use it in command line to format files.\n\n## Setup\n\n### Directly from the repository\n\nClone the git repo into your `Packages` folder using\n\n```python\ngit clone https://github.com/csurfer/sublime_black Black\n```\n\nand restart SublimeText3.\n\n### Package Control\n\nSubmitted to Package Control on May 1st 2018. Should be available soon!\n\n## Settings\n\n* Line length setting for the package is set to 88 by default to be in sync with `black`. If you intend to change the same `Open command palette -\u003e Goto Preferences: Black Settings - User -\u003e Change \"line_length\"` to the value you desire.\n* Locale setting for the package (required by click's http://click.pocoo.org/5/python3/#python-3-surrogate-handling) by default is set to `en_CA.UTF-8`. If you intend to change the same `Open command palette -\u003e Goto Preferences: Black Settings - User -\u003e Change \"encoding\"` to the value you desire.\n* String quotes or prefixes are normalized by the default to be in sync with `black`. This works great for new projects, but may not be the default you want for existing projects. Check out [the docs](https://github.com/ambv/black#strings) for specific details. If you intend to change the same `Open command palette -\u003e Goto Preferences: Black Settings - User -\u003e Change \"skip_string_normalization\"` to either `true` or `false` (the default).\n\n## Notes\n\n* Currently supports only saved file formatting due to conflict between SublimeText3 default python version (3.3) and [black](https://github.com/ambv/black) supported version (3.6).\n* More to come as soon as SublimeText supports latest python version.\n\n## Contributing\n\n### Bug Reports and Feature Requests\n\nPlease use [issue tracker](https://github.com/csurfer/sublime_black/issues) for reporting bugs or feature requests.\n\n### Development\n\nPull requests are most welcome.\n\n### Buy the developer a cup of coffee!\n\nIf you found the utility helpful you can buy me a cup of coffee using\n\n[![Donate](https://www.paypalobjects.com/webstatic/en_US/i/btn/png/silver-pill-paypal-44px.png)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026business=3BSBW7D45C4YN\u0026lc=US\u0026currency_code=USD\u0026bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsurfer%2Fsublime_black","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsurfer%2Fsublime_black","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsurfer%2Fsublime_black/lists"}