{"id":17362548,"url":"https://github.com/domdfcoding/pre-commit-hooks","last_synced_at":"2026-03-02T08:31:20.301Z","repository":{"id":38292037,"uuid":"281498277","full_name":"domdfcoding/pre-commit-hooks","owner":"domdfcoding","description":"Some useful hooks for pre-commit.","archived":false,"fork":false,"pushed_at":"2026-02-19T16:08:37.000Z","size":1014,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-19T19:52:50.475Z","etag":null,"topics":["git","pre-commit","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/domdfcoding.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"CONTRIBUTING.rst","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-07-21T20:32:03.000Z","updated_at":"2026-02-19T16:08:41.000Z","dependencies_parsed_at":"2023-02-16T10:45:37.882Z","dependency_job_id":"7954257f-0ec7-4ccb-85c2-346f466d8b92","html_url":"https://github.com/domdfcoding/pre-commit-hooks","commit_stats":{"total_commits":594,"total_committers":78,"mean_commits":7.615384615384615,"dds":0.5235690235690236,"last_synced_commit":"b1987962f5c692b7890f07d3ac6781d58b969194"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/domdfcoding/pre-commit-hooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domdfcoding%2Fpre-commit-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domdfcoding%2Fpre-commit-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domdfcoding%2Fpre-commit-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domdfcoding%2Fpre-commit-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/domdfcoding","download_url":"https://codeload.github.com/domdfcoding/pre-commit-hooks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domdfcoding%2Fpre-commit-hooks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29995912,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"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":["git","pre-commit","python"],"created_at":"2024-10-15T19:39:16.665Z","updated_at":"2026-03-02T08:31:20.245Z","avatar_url":"https://github.com/domdfcoding.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"#################\npre-commit-hooks\n#################\n\n.. start short_desc\n\n**Some useful hooks for pre-commit.**\n\n.. end short_desc\n\nNow with 2× as many hooks!\n\nSee also: https://github.com/pre-commit/pre-commit\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* - Activity\n\t  - |commits-latest| |commits-since| |maintained|\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/domdfcoding/pre-commit-hooks/workflows/Linux/badge.svg\n\t:target: https://github.com/domdfcoding/pre-commit-hooks/actions?query=workflow%3A%22Linux%22\n\t:alt: Linux Test Status\n\n.. |actions_windows| image:: https://github.com/domdfcoding/pre-commit-hooks/workflows/Windows/badge.svg\n\t:target: https://github.com/domdfcoding/pre-commit-hooks/actions?query=workflow%3A%22Windows%22\n\t:alt: Windows Test Status\n\n.. |actions_macos| image:: https://github.com/domdfcoding/pre-commit-hooks/workflows/macOS/badge.svg\n\t:target: https://github.com/domdfcoding/pre-commit-hooks/actions?query=workflow%3A%22macOS%22\n\t:alt: macOS Test Status\n\n.. |actions_flake8| image:: https://github.com/domdfcoding/pre-commit-hooks/workflows/Flake8/badge.svg\n\t:target: https://github.com/domdfcoding/pre-commit-hooks/actions?query=workflow%3A%22Flake8%22\n\t:alt: Flake8 Status\n\n.. |actions_mypy| image:: https://github.com/domdfcoding/pre-commit-hooks/workflows/mypy/badge.svg\n\t:target: https://github.com/domdfcoding/pre-commit-hooks/actions?query=workflow%3A%22mypy%22\n\t:alt: mypy status\n\n.. |requires| image:: https://dependency-dash.repo-helper.uk/github/domdfcoding/pre-commit-hooks/badge.svg\n\t:target: https://dependency-dash.repo-helper.uk/github/domdfcoding/pre-commit-hooks/\n\t:alt: Requirements Status\n\n.. |coveralls| image:: https://img.shields.io/coveralls/github/domdfcoding/pre-commit-hooks/master?logo=coveralls\n\t:target: https://coveralls.io/github/domdfcoding/pre-commit-hooks?branch=master\n\t:alt: Coverage\n\n.. |codefactor| image:: https://img.shields.io/codefactor/grade/github/domdfcoding/pre-commit-hooks?logo=codefactor\n\t:target: https://www.codefactor.io/repository/github/domdfcoding/pre-commit-hooks\n\t:alt: CodeFactor Grade\n\n.. |license| image:: https://img.shields.io/github/license/domdfcoding/pre-commit-hooks\n\t:target: https://github.com/domdfcoding/pre-commit-hooks/blob/master/LICENSE\n\t:alt: License\n\n.. |language| image:: https://img.shields.io/github/languages/top/domdfcoding/pre-commit-hooks\n\t:alt: GitHub top language\n\n.. |commits-since| image:: https://img.shields.io/github/commits-since/domdfcoding/pre-commit-hooks/v0.4.0\n\t:target: https://github.com/domdfcoding/pre-commit-hooks/pulse\n\t:alt: GitHub commits since tagged version\n\n.. |commits-latest| image:: https://img.shields.io/github/last-commit/domdfcoding/pre-commit-hooks\n\t:target: https://github.com/domdfcoding/pre-commit-hooks/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.. end shields\n\nUsing pre-commit-hooks with pre-commit\n---------------------------------------\n\nAdd this to your ``.pre-commit-config.yaml``\n\n.. code-block:: yaml\n\n\t-   repo: https://github.com/domdfcoding/pre-commit-hooks\n\t    rev: v0.4.0  # Use the ref you want to point at\n\t    hooks:\n\t    -   id: requirements-txt-sorter\n\t    # -   id: ...\n\nHooks available\n-----------------\n\n``requirements-txt-sorter``\nSorts `PEP 508 \u003chttps://www.python.org/dev/peps/pep-0508/\u003e`_ entries in requirements.txt and removes invalid entries, including ``pkg-resources==0.4.0``.\n\n``check-docstring-first``\nChecks that the docstring occurs before any module code, but allows additional \"docstrings\", such as for documenting variables with Sphinx.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdomdfcoding%2Fpre-commit-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdomdfcoding%2Fpre-commit-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdomdfcoding%2Fpre-commit-hooks/lists"}