{"id":15583648,"url":"https://github.com/mirceaulinic/black","last_synced_at":"2026-01-19T09:34:07.236Z","repository":{"id":49009611,"uuid":"185352379","full_name":"mirceaulinic/black","owner":"mirceaulinic","description":"Docker image for Black","archived":false,"fork":false,"pushed_at":"2021-07-01T05:50:56.000Z","size":5,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T21:26:43.981Z","etag":null,"topics":["black","docker","docker-image","python"],"latest_commit_sha":null,"homepage":null,"language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mirceaulinic.png","metadata":{"files":{"readme":"README.md","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}},"created_at":"2019-05-07T08:03:23.000Z","updated_at":"2019-10-28T12:51:06.000Z","dependencies_parsed_at":"2022-08-27T21:51:04.205Z","dependency_job_id":null,"html_url":"https://github.com/mirceaulinic/black","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mirceaulinic/black","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirceaulinic%2Fblack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirceaulinic%2Fblack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirceaulinic%2Fblack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirceaulinic%2Fblack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mirceaulinic","download_url":"https://codeload.github.com/mirceaulinic/black/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirceaulinic%2Fblack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28565001,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T08:53:44.001Z","status":"ssl_error","status_checked_at":"2026-01-19T08:52:40.245Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","docker","docker-image","python"],"created_at":"2024-10-02T20:15:31.493Z","updated_at":"2026-01-19T09:34:02.229Z","avatar_url":"https://github.com/mirceaulinic.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Black\n\nDocker image for [Black](https://black.readthedocs.io/en/stable/), the \nuncompromising Python code formatter.\n\n## Usage\n\nThe Docker image is on [Docker hub](https://hub.docker.com/r/mirceaulinic/black),\nand you can pull it by executing ``docker pull mirceaulinic/black``. The\nfollowing instructions would use the public image.\n\n### Shell alias\n\nIn your environment, you can the define the following bash / zsh/ etc. aliases:\n\n```bash\nfunction black-check(){\n    docker run --rm -v $PWD:PWD -ti mirceaulinic/black black --fast --skip-string-normalization --check $PWD\n}\n```\n\nand / or:\n\n```bash\nfunction black-format(){\n    docker run --rm -v $PWD:PWD -ti mirceaulinic/black black --fast --skip-string-normalization $PWD\n}\n```\n\nAnd use them when inside your project:\n\n```bash\n$ black-format\nAll done! ✨ 🍰 ✨\n2 files left unchanged.\n```\n\n### Using [this](https://github.com/mirceaulinic/black/blob/master/Makefile) Makefile\n\nExecute ``make black`` or ``make format`` passing the ``CODEPATH`` variable \nwith the absolute path to where you have the code to be checked or formatted, \ne.g.,\n\n```bash\n$ make format CODEPATH=/path/to/my/code\nAll done! ✨ 🍰 ✨\n85 files left unchanged.\n```\n\nThe instruction above would Black-format your code found under the \n``path/to/my/code`` directory. ``make black`` works in a similar way, but it \nonly returns whether the code passed the Black checks without updating your \ncode, e.g., \n\n```bash\n$ make format CODEPATH=/path/to/my/code\nAll done! 💥 💔 💥\n2050 files would be reformatted, 593 files would be left unchanged, 4 files would fail to reformat.\nMakefile:14: recipe for target 'black' failed\nmake: *** [black] Error 123\n\n$ echo $?\n2\n```\n\n*Note*:\n\n\u003e One detail to note is that both ``make format`` and ``make black`` are using \n\u003e the ``--skip-string-normalization`` option which tells Black to ignore the \n\u003e single quotes (by default Black prefers double quotes in the favour of \n\u003e single quotes).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirceaulinic%2Fblack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmirceaulinic%2Fblack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirceaulinic%2Fblack/lists"}