{"id":17377362,"url":"https://github.com/kieran-ryan/removestar-pre-commit","last_synced_at":"2026-01-07T12:30:30.513Z","repository":{"id":181625078,"uuid":"667039370","full_name":"kieran-ryan/removestar-pre-commit","owner":"kieran-ryan","description":"A pre-commit hook for removing wildcard Python imports","archived":false,"fork":false,"pushed_at":"2024-07-22T14:43:07.000Z","size":14,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-11T05:00:34.863Z","etag":null,"topics":["imports","pre-commit","python"],"latest_commit_sha":null,"homepage":"","language":null,"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/kieran-ryan.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}},"created_at":"2023-07-16T12:48:15.000Z","updated_at":"2024-07-22T14:43:10.000Z","dependencies_parsed_at":"2024-01-22T00:33:53.250Z","dependency_job_id":"46f52412-c48b-480e-8de5-b9b3253ef68b","html_url":"https://github.com/kieran-ryan/removestar-pre-commit","commit_stats":null,"previous_names":["kieran-ryan/removestar-pre-commit"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/kieran-ryan/removestar-pre-commit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kieran-ryan%2Fremovestar-pre-commit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kieran-ryan%2Fremovestar-pre-commit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kieran-ryan%2Fremovestar-pre-commit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kieran-ryan%2Fremovestar-pre-commit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kieran-ryan","download_url":"https://codeload.github.com/kieran-ryan/removestar-pre-commit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kieran-ryan%2Fremovestar-pre-commit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275857834,"owners_count":25541042,"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","status":"online","status_checked_at":"2025-09-18T02:00:09.552Z","response_time":77,"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":["imports","pre-commit","python"],"created_at":"2024-10-16T05:05:38.375Z","updated_at":"2025-09-19T00:32:53.545Z","avatar_url":"https://github.com/kieran-ryan.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# removestar-pre-commit\n\n[![image](https://badge.fury.io/py/removestar.svg)](https://pypi.org/project/removestar/)\n[![image](https://img.shields.io/pypi/l/removestar)](https://pypi.python.org/pypi/removestar)\n[![image](https://img.shields.io/pypi/pyversions/removestar.svg)](https://pypi.python.org/pypi/pyprojectsort)\n[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/kieran-ryan/removestar-pre-commit/main.svg)](https://results.pre-commit.ci/latest/github/kieran-ryan/removestar-pre-commit/main)\n\nA [pre-commit](https://pre-commit.com/) hook for [removestar](https://github.com/asmeurer/removestar).\n\nDistributed as a standalone repository to enable installing `removestar` via prebuilt wheels from\n[PyPI](https://pypi.org/project/removestar/).\n\n\u003e[!IMPORTANT]\n\u003e A pre-commit hook has subsequently been natively integrated to [removestar](https://github.com/asmeurer/removestar) (see asmeurer/removestar#33). Please use that instead.\n\n### Using removestar with [pre-commit](https://pre-commit.com)\n\nAdd this to your `.pre-commit-config.yaml`:\n\n```yaml\n- repo: https://github.com/kieran-ryan/removestar-pre-commit\n  rev: 1.3.1\n  hooks:\n    - id: removestar\n      args: [-i, \u003csource_code_dir\u003e]\n```\n\nTo run the hook on Jupyter Notebooks too:\n\n```yaml\n- repo: https://github.com/kieran-ryan/removestar-pre-commit\n  rev: 1.3.1\n  hooks:\n    - id: removestar\n      args: [-i, \u003csource_code_dir\u003e]\n      types_or: [python, pyi, jupyter]\n```\n\nRemovestar's pre-commit hook should be placed after other formatting tools, such as Black and isort,\n_unless_ you enable autofix, in which case, removestar's pre-commit hook should run _before_ Black, isort,\nand other formatting tools, as removestar's autofix behaviour can output code changes that require\nreformatting.\n\n## License\n\n`removestar-pre-commit` is licensed under the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkieran-ryan%2Fremovestar-pre-commit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkieran-ryan%2Fremovestar-pre-commit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkieran-ryan%2Fremovestar-pre-commit/lists"}