{"id":18565006,"url":"https://github.com/greenbone/autohooks-plugin-black","last_synced_at":"2026-02-28T07:36:31.714Z","repository":{"id":37735315,"uuid":"171655810","full_name":"greenbone/autohooks-plugin-black","owner":"greenbone","description":"An autohooks plugin for python code formatting via black","archived":false,"fork":false,"pushed_at":"2026-02-09T06:41:54.000Z","size":1393,"stargazers_count":7,"open_issues_count":1,"forks_count":4,"subscribers_count":6,"default_branch":"main","last_synced_at":"2026-02-09T12:30:08.357Z","etag":null,"topics":["autohooks","autohooks-plugin","base","black","devops","formatting","git","githooks","githooks-plugin","python","python3","tooling"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/greenbone.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-02-20T10:54:36.000Z","updated_at":"2026-02-09T06:41:58.000Z","dependencies_parsed_at":"2025-11-27T08:23:58.140Z","dependency_job_id":null,"html_url":"https://github.com/greenbone/autohooks-plugin-black","commit_stats":{"total_commits":498,"total_committers":10,"mean_commits":49.8,"dds":0.3273092369477911,"last_synced_commit":"0bd18283d3b2918907ecfe9febb56de7d8323ecb"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/greenbone/autohooks-plugin-black","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenbone%2Fautohooks-plugin-black","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenbone%2Fautohooks-plugin-black/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenbone%2Fautohooks-plugin-black/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenbone%2Fautohooks-plugin-black/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/greenbone","download_url":"https://codeload.github.com/greenbone/autohooks-plugin-black/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenbone%2Fautohooks-plugin-black/sbom","scorecard":{"id":359650,"data":{"date":"2025-08-11","repo":{"name":"github.com/greenbone/autohooks-plugin-black","commit":"b6e0dc34a7d93738f52e4ec58b5b81aeae709093"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":6.4,"checks":[{"name":"Code-Review","score":2,"reason":"Found 1/5 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":8,"reason":"10 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 8","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/auto-merge.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/greenbone/autohooks-plugin-black/auto-merge.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci-python.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/greenbone/autohooks-plugin-black/ci-python.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-python.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/greenbone/autohooks-plugin-black/ci-python.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci-python.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/greenbone/autohooks-plugin-black/ci-python.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis-python.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/greenbone/autohooks-plugin-black/codeql-analysis-python.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis-python.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/greenbone/autohooks-plugin-black/codeql-analysis-python.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis-python.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/greenbone/autohooks-plugin-black/codeql-analysis-python.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/conventional-commits.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/greenbone/autohooks-plugin-black/conventional-commits.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/dependency-review.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/greenbone/autohooks-plugin-black/dependency-review.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/deploy-pypi.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/greenbone/autohooks-plugin-black/deploy-pypi.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release-pontos.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/greenbone/autohooks-plugin-black/release-pontos.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/sbom-upload.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/greenbone/autohooks-plugin-black/sbom-upload.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/update-header.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/greenbone/autohooks-plugin-black/update-header.yml/main?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   9 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis-python.yml:19","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis-python.yml:20","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/sbom-upload.yml:11","Warn: topLevel 'contents' permission set to 'write': .github/workflows/auto-merge.yml:5","Warn: no topLevel permission defined: .github/workflows/ci-python.yml:1","Warn: no topLevel permission defined: .github/workflows/codeql-analysis-python.yml:1","Info: topLevel 'contents' permission set to 'read': .github/workflows/conventional-commits.yml:8","Info: topLevel 'contents' permission set to 'read': .github/workflows/dependency-review.yml:5","Warn: no topLevel permission defined: .github/workflows/deploy-pypi.yml:1","Warn: no topLevel permission defined: .github/workflows/release-pontos.yml:1","Warn: no topLevel permission defined: .github/workflows/sbom-upload.yml:1","Warn: topLevel 'contents' permission set to 'write': .github/workflows/update-header.yml:9"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/greenbone/.github/SECURITY.md:1","Info: Found linked content: github.com/greenbone/.github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/greenbone/.github/SECURITY.md:1","Info: Found text in security policy: github.com/greenbone/.github/SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Signed-Releases","score":8,"reason":"5 out of the last 5 releases have a total of 5 signed artifacts.","details":["Info: signed release artifact: autohooks-plugin-black-25.4.0.tar.gz.asc: https://github.com/greenbone/autohooks-plugin-black/releases/tag/v25.4.0","Info: signed release artifact: autohooks-plugin-black-25.3.0.tar.gz.asc: https://github.com/greenbone/autohooks-plugin-black/releases/tag/v25.3.0","Info: signed release artifact: autohooks-plugin-black-23.10.0.tar.gz.asc: https://github.com/greenbone/autohooks-plugin-black/releases/tag/v23.10.0","Info: signed release artifact: autohooks-plugin-black-23.7.0.tar.gz.asc: https://github.com/greenbone/autohooks-plugin-black/releases/tag/v23.7.0","Info: signed release artifact: autohooks-plugin-black-23.4.0.tar.gz.asc: https://github.com/greenbone/autohooks-plugin-black/releases/tag/v23.4.0","Warn: release artifact v25.4.0 does not have provenance: https://api.github.com/repos/greenbone/autohooks-plugin-black/releases/214726350","Warn: release artifact v25.3.0 does not have provenance: https://api.github.com/repos/greenbone/autohooks-plugin-black/releases/204653109","Warn: release artifact v23.10.0 does not have provenance: https://api.github.com/repos/greenbone/autohooks-plugin-black/releases/125567697","Warn: release artifact v23.7.0 does not have provenance: https://api.github.com/repos/greenbone/autohooks-plugin-black/releases/112480925","Warn: release artifact v23.4.0 does not have provenance: https://api.github.com/repos/greenbone/autohooks-plugin-black/releases/100160038"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"SAST","score":10,"reason":"SAST tool is run on all commits","details":["Info: SAST configuration detected: CodeQL","Info: all commits (26) are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T10:29:10.079Z","repository_id":37735315,"created_at":"2025-08-18T10:29:10.079Z","updated_at":"2025-08-18T10:29:10.079Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29927623,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T19:37:42.220Z","status":"online","status_checked_at":"2026-02-28T02:00:07.010Z","response_time":90,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["autohooks","autohooks-plugin","base","black","devops","formatting","git","githooks","githooks-plugin","python","python3","tooling"],"created_at":"2024-11-06T22:17:24.470Z","updated_at":"2026-02-28T07:36:31.696Z","avatar_url":"https://github.com/greenbone.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Greenbone Logo](https://www.greenbone.net/wp-content/uploads/gb_new-logo_horizontal_rgb_small.png)\n\n# autohooks-plugin-black\n\n[![PyPI release](https://img.shields.io/pypi/v/autohooks-plugin-black.svg)](https://pypi.org/project/autohooks-plugin-black/)\n\nAn [autohooks](https://github.com/greenbone/autohooks) plugin for python code\nformatting via [black](https://github.com/ambv/black).\n\n## Installation\n\n### Install using pip\n\nYou can install the latest stable release of autohooks-plugin-black from the\nPython Package Index using [pip](https://pip.pypa.io/):\n\n    python3 -m pip install autohooks-plugin-black\n\n### Install using poetry\n\nIt is highly encouraged to use [poetry](https://python-poetry.org) for\nmaintaining your project's dependencies. Normally autohooks-plugin-black is\ninstalled as a development dependency.\n\n    poetry add --dev autohooks-plugin-black\n\n## Usage\n\nTo activate the black autohooks plugin please add the following setting to your\n*pyproject.toml* file.\n\n```toml\n[tool.autohooks]\npre-commit = [\"autohooks.plugins.black\"]\n```\n\nBy default, autohooks plugin black checks all files with a *.py* ending. If only\nfiles in a sub-directory or files with different endings should be formatted,\njust add the following setting:\n\n```toml\n[tool.autohooks]\npre-commit = [\"autohooks.plugins.black\"]\n\n[tool.autohooks.plugins.black]\ninclude = ['foo/*.py', '*.foo']\n```\n\nAlso by default, autohooks plugin black executes black with the `-q` argument.\nIf e.g. the generated patch should be shown the following setting can be used:\n\n```toml\n[tool.autohooks]\npre-commit = [\"autohooks.plugins.black\"]\n\n[tool.autohooks.plugins.black]\narguments = [\"-q\", \"--diff\"]\n```\n\n## Maintainer\n\nThis project is maintained by [Greenbone AG](https://www.greenbone.net/).\n\n## Contributing\n\nYour contributions are highly appreciated. Please\n[create a pull request](https://github.com/greenbone/autohooks-plugin-black/pulls)\non GitHub. Bigger changes need to be discussed with the development team via the\n[issues section at GitHub](https://github.com/greenbone/autohooks-plugin-black/issues)\nfirst.\n\n## License\n\nCopyright (C) 2019-2023 [Greenbone AG](https://www.greenbone.net/)\n\nLicensed under the [GNU General Public License v3.0 or later](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreenbone%2Fautohooks-plugin-black","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgreenbone%2Fautohooks-plugin-black","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreenbone%2Fautohooks-plugin-black/lists"}