{"id":13598762,"url":"https://github.com/pre-commit/pygrep-hooks","last_synced_at":"2025-04-10T09:32:07.422Z","repository":{"id":34633341,"uuid":"142720128","full_name":"pre-commit/pygrep-hooks","owner":"pre-commit","description":"A collection of fast, cheap, regex based pre-commit hooks.","archived":false,"fork":false,"pushed_at":"2025-03-31T19:55:04.000Z","size":239,"stargazers_count":221,"open_issues_count":1,"forks_count":38,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-04-09T14:08:29.362Z","etag":null,"topics":["pre-commit"],"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/pre-commit.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"asottile","open_collective":"pre-commit","tidelift":"pypi/pre-commit"}},"created_at":"2018-07-29T00:50:16.000Z","updated_at":"2025-03-31T19:55:06.000Z","dependencies_parsed_at":"2023-01-15T08:11:39.285Z","dependency_job_id":"d2cc6ada-0e0f-4e0d-908d-2dbe6f9a6098","html_url":"https://github.com/pre-commit/pygrep-hooks","commit_stats":{"total_commits":195,"total_committers":14,"mean_commits":"13.928571428571429","dds":"0.41538461538461535","last_synced_commit":"3abcfdf4134975089892fcca83363f0767739bdf"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pre-commit%2Fpygrep-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pre-commit%2Fpygrep-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pre-commit%2Fpygrep-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pre-commit%2Fpygrep-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pre-commit","download_url":"https://codeload.github.com/pre-commit/pygrep-hooks/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248191774,"owners_count":21062570,"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":["pre-commit"],"created_at":"2024-08-01T17:00:55.947Z","updated_at":"2025-04-10T09:32:02.406Z","avatar_url":"https://github.com/pre-commit.png","language":"Python","readme":"[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/pre-commit/pygrep-hooks/main.svg)](https://results.pre-commit.ci/latest/github/pre-commit/pygrep-hooks/main)\n\npygrep-hooks\n============\n\nA collection of fast, cheap, regex based pre-commit hooks.\n\n\n### Adding to your `.pre-commit-config.yaml`\n\n```yaml\n-   repo: https://github.com/pre-commit/pygrep-hooks\n    rev: v1.10.0  # Use the ref you want to point at\n    hooks:\n    -   id: python-use-type-annotations\n    # ...\n```\n\n### Naming conventions\n\nWhere possible, these hooks will be prefixed with the file types they target.\nFor example, a hook which targets python will be called `python-...`.\n\n### Provided hooks\n\n[generated]: # (generated)\n- **`python-check-blanket-noqa`**: Enforce that `noqa` annotations always occur with specific codes. Sample annotations: `# noqa: F401`, `# noqa: F401,W203`\n- **`python-check-blanket-type-ignore`**: Enforce that `# type: ignore` annotations always occur with specific codes. Sample annotations: `# type: ignore[attr-defined]`, `# type: ignore[attr-defined, name-defined]`\n- **`python-check-mock-methods`**: Prevent common mistakes of `assert mck.not_called()`, `assert mck.called_once_with(...)` and `mck.assert_called`.\n- **`python-no-eval`**: A quick check for the `eval()` built-in function\n- **`python-no-log-warn`**: A quick check for the deprecated `.warn()` method of python loggers\n- **`python-use-type-annotations`**: Enforce that python3.6+ type annotations are used instead of type comments\n- **`rst-backticks`**: Detect common mistake of using single backticks when writing rst\n- **`rst-directive-colons`**: Detect mistake of rst directive not ending with double colon or space before the double colon\n- **`rst-inline-touching-normal`**: Detect mistake of inline code touching normal text in rst\n- **`text-unicode-replacement-char`**: Forbid files which have a UTF-8 Unicode replacement character\n","funding_links":["https://github.com/sponsors/asottile","https://opencollective.com/pre-commit","https://tidelift.com/funding/github/pypi/pre-commit"],"categories":["Software Engineering"],"sub_categories":["Curated Python packages"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpre-commit%2Fpygrep-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpre-commit%2Fpygrep-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpre-commit%2Fpygrep-hooks/lists"}