{"id":15009355,"url":"https://github.com/playpauseandstop/pre-commit-run-hook-entry","last_synced_at":"2025-10-28T15:30:20.552Z","repository":{"id":37079966,"uuid":"270627642","full_name":"playpauseandstop/pre-commit-run-hook-entry","owner":"playpauseandstop","description":"Run pre-commit hook entry. Allow to run pre-commit hooks for text editor formatting / linting needs.","archived":false,"fork":false,"pushed_at":"2025-01-01T05:50:29.000Z","size":154,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-20T16:25:01.942Z","etag":null,"topics":["pre-commit","python-3-10","python-3-6","python-3-7","python-3-8","python-3-9","sublime-text-3","vscode"],"latest_commit_sha":null,"homepage":"","language":"Python","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/playpauseandstop.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","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":"2020-06-08T10:35:35.000Z","updated_at":"2024-12-27T11:08:43.000Z","dependencies_parsed_at":"2023-02-17T02:16:29.847Z","dependency_job_id":null,"html_url":"https://github.com/playpauseandstop/pre-commit-run-hook-entry","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/playpauseandstop%2Fpre-commit-run-hook-entry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/playpauseandstop%2Fpre-commit-run-hook-entry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/playpauseandstop%2Fpre-commit-run-hook-entry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/playpauseandstop%2Fpre-commit-run-hook-entry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/playpauseandstop","download_url":"https://codeload.github.com/playpauseandstop/pre-commit-run-hook-entry/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238667878,"owners_count":19510494,"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","python-3-10","python-3-6","python-3-7","python-3-8","python-3-9","sublime-text-3","vscode"],"created_at":"2024-09-24T19:24:40.072Z","updated_at":"2025-10-28T15:30:15.107Z","avatar_url":"https://github.com/playpauseandstop.png","language":"Python","readme":"=========================\npre-commit-run-hook-entry\n=========================\n\n.. image:: https://github.com/playpauseandstop/pre-commit-run-hook-entry/actions/workflows/ci.yml/badge.svg\n    :target: https://github.com/playpauseandstop/pre-commit-run-hook-entry/actions/workflows/ci.yml\n    :alt: CI\n\n.. image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit\u0026logoColor=white\n    :target: https://github.com/pre-commit/pre-commit\n    :alt: pre-commit\n\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n    :target: https://github.com/psf/black\n    :alt: black\n\n.. image:: https://img.shields.io/pypi/v/pre-commit-run-hook-entry.svg\n    :target: https://pypi.org/project/pre-commit-run-hook-entry/\n    :alt: Latest Version\n\n.. image:: https://img.shields.io/pypi/pyversions/pre-commit-run-hook-entry.svg\n    :target: https://pypi.org/project/pre-commit-run-hook-entry/\n    :alt: Python versions\n\n.. image:: https://img.shields.io/pypi/l/pre-commit-run-hook-entry.svg\n    :target: https://github.com/playpauseandstop/pre-commit-run-hook-entry/blob/main/LICENSE\n    :alt: BSD License\n\n.. image:: https://coveralls.io/repos/playpauseandstop/pre-commit-run-hook-entry/badge.svg?branch=main\u0026service=github\n    :target: https://coveralls.io/github/playpauseandstop/pre-commit-run-hook-entry\n    :alt: Coverage\n\nRun `pre-commit`_ hook entry. Allow to run pre-commit hooks for text editor\nformatting / linting needs.\n\n.. _`pre-commit`: https://pre-commit.com/\n\nDanger Zone\n===========\n\n**IMPORTANT:** This is highly experimental tool as `pre-commit internals does\nnot intend to be used in other scripts\n\u003chttps://github.com/pre-commit/pre-commit/issues/1468#issuecomment-640699437\u003e`_.\nIt might be broken after new pre-commit release.\n\n**TO USE WITH CAUTION!**\n\nRequirements\n============\n\n- `Python \u003chttps://www.python.org/\u003e`_ 3.9 or later\n- `pre-commit`_ 4.0 or later\n\nLicense\n=======\n\n``pre-commit-run-hook-entry`` is licensed under the terms of\n`BSD-3-Clause \u003c/LICENSE\u003e`_ license.\n\nInstallation\n============\n\n.. code-block:: bash\n\n    pip install pre-commit-run-hook-entry\n\nUsage\n=====\n\n.. code-block:: bash\n\n    pre-commit-run-hook-entry HOOK [ARGS]\n    pre-commit-which-hook-entry HOOK\n\nPrerequisites\n-------------\n\n``pre-commit-run-hook-entry`` only works in directories, where\n``pre-commit run --all HOOK`` is executable.\n\npre-commit Versions Support\n---------------------------\n\n================================= ===================\npre-commit-run-hook-entry version pre-commit version\n================================= ===================\n``1.0.0b0`` or lower              ``3.8.0`` or lower\n``1.0.0rc0`` or higher            ``4.0.0`` or higher\n================================= ===================\n\nVS Code Integration\n-------------------\n\nExample below illustrates how to configure VS Code to use black, flake8 \u0026\nmypy pre-commit hooks for formatting \u0026 linting,\n\n.. code-block:: json\n\n    {\n        \"python.formatting.provider\": \"black\",\n        \"python.formatting.blackPath\": \"pre-commit-run-hook-entry\",\n        \"python.formatting.blackArgs\": [\"black\"],\n        \"python.linting.enabled\": true,\n        \"python.linting.flake8Enabled\": true,\n        \"python.linting.flake8Path\": \"pre-commit-run-hook-entry\",\n        \"python.linting.flake8Args\": [\"flake8\"],\n        \"python.linting.mypyEnabled\": true,\n        \"python.linting.mypyPath\": \"pre-commit-run-hook-entry\",\n        \"python.linting.mypyArgs\": [\"mypy\"]\n    }\n\nSublime Text 3 Integration\n--------------------------\n\nisorted\n~~~~~~~\n\n.. code-block:: json\n\n    {\n        \"isorted.isort_command\": [\"pre-commit-run-hook-entry\", \"isort\"]\n    }\n\nsublack\n~~~~~~~\n\nFrom one point `sublack \u003chttps://github.com/jgirardet/sublack/\u003e`__ has builtin\npre-commit integration, but it seems do not respect settings from\n``pyproject.toml``, to fix this use ``pre-commit-run-black-entry`` as\n``sublack.black_command``,\n\n.. code-block:: json\n\n    {\n        \"sublack.black_command\": \"pre-commit-run-black-entry\"\n    }\n\n\nSublimeLinter-flake8\n~~~~~~~~~~~~~~~~~~~~\n\n.. code-block:: json\n\n    {\n        \"SublimeLinter.linters.flake8.executable\": \"pre-commit-run-hook-entry\",\n        \"SublimeLinter.linters.flake8.args\": [\"--\", \"flake8\"]\n    }\n\n\nSublimeLinter-contrib-mypy\n~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n.. code-block:: json\n\n    {\n        \"SublimeLinter.linters.mypy.executable\": \"pre-commit-run-hook-entry\",\n        \"SublimeLinter.linters.mypy.args\": [\"--\", \"mypy\"]\n    }\n\nSublimeJsPrettier\n~~~~~~~~~~~~~~~~~\n\nFirst, you need to find out path to prettier hook entry with,\n\n.. code-block:: bash\n\n    pre-commit-which-hook-entry prettier\n\nThen, paste command output (``\u003cOUTPUT\u003e``) into plugin config,\n\n.. code-block:: json\n\n    {\n        \"js_prettier\": {\n            \"prettier_cli_path\": \"\u003cOUTPUT\u003e\"\n        }\n    }\n\nSublimeLinter-eslint\n~~~~~~~~~~~~~~~~~~~~\n\nFirst, you need to find out path to eslint hook entry with,\n\n.. code-block:: bash\n\n    pre-commit-which-hook-entry eslint\n\nThen, paste command output (``\u003cOUTPUT\u003e``) into plugin config,\n\n.. code-block:: json\n\n    {\n        \"SublimeLinter.linters.eslint.executable\": \"\u003cOUTPUT\u003e\",\n        \"SublimeLinter.linters.eslint.env\": {\n            \"NODE_PATH\": \"\u003cOUTPUT\u003e/../../lib/node_modules\"\n        }\n    }\n\n**IMPORTANT:** If you're using any ``additionalDependencies`` for eslint hook,\nyou need to configure ``NODE_PATH``, so plugin will be able to find out given\ndependencies.\n\nIssues \u0026 Feature Requests\n=========================\n\nFeel free to submit new issue or feature request `at GitHub\n\u003chttps://github.com/playpauseandstop/pre-commit-run-hook-entry/issues\u003e`_\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplaypauseandstop%2Fpre-commit-run-hook-entry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplaypauseandstop%2Fpre-commit-run-hook-entry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplaypauseandstop%2Fpre-commit-run-hook-entry/lists"}