{"id":20114342,"url":"https://github.com/jetbridge/pre-commit-hooks","last_synced_at":"2026-06-05T06:31:40.293Z","repository":{"id":98606521,"uuid":"189591351","full_name":"jetbridge/pre-commit-hooks","owner":"jetbridge","description":null,"archived":false,"fork":false,"pushed_at":"2019-06-01T19:49:47.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-09T19:44:33.088Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jetbridge.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-05-31T12:36:52.000Z","updated_at":"2019-06-01T19:49:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"fb3adcee-6450-45b3-9274-11c8a2a317ab","html_url":"https://github.com/jetbridge/pre-commit-hooks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jetbridge/pre-commit-hooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jetbridge%2Fpre-commit-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jetbridge%2Fpre-commit-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jetbridge%2Fpre-commit-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jetbridge%2Fpre-commit-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jetbridge","download_url":"https://codeload.github.com/jetbridge/pre-commit-hooks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jetbridge%2Fpre-commit-hooks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33932048,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-05T02:00:06.157Z","response_time":120,"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":[],"created_at":"2024-11-13T18:29:23.809Z","updated_at":"2026-06-05T06:31:40.252Z","avatar_url":"https://github.com/jetbridge.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pre-Commit Hooks\nCollection of pre-commit hooks that can make your life easier :) \n\n## Installation\n\n### 1. If you don't have `pre-commit` installed in your project:\n```\nbrew install pre-commit # make sure pre-commit is installed in your system\ncd ~/\u003cyour-project\u003e\npre-commit install\ntouch .pre-commit-config.yaml\n```\n\n### 2. Edit your `.pre-commit-config.yaml` to add hooks from this project:\n - Add (see the list of available hooks below):\n  ```\n    - repo: git@github.com:jetbridge/pre-commit-hooks.git\n      rev: master\n      hooks:\n        - id: black\n        - id: flake8\n        - id: pytest\n  ```\n - Save `.pre-commit-config.yaml`\n - Stage it:\n ```\n git add .pre-commit-config.yaml\n ```\n\n## Usage\nUse `git commit` command to run the hooks and commit staged files.\nUse `pre-commit run` to run the hooks without commiting.\nUse `pre-commit autoupdate` to update the repo `rev` if you experience any problems running the hooks.\n\n## List of hooks\n### Black\nFormats your staged files with Black formatter ([black](https://github.com/python/black) should be installed and configured in your project).\nIf some files have to be fixed, it will fix them and apply `git add` on them so your commit will not be rejected.\n### Flake8\nRuns flake8 linter to find any problems with file formatting according to specified rules ([flake8](http://flake8.pycqa.org/en/latest/) should be installed and configured in your project).\n### Pytest\nRuns pytest with flags `-xq`. It means that tests will be run in quiet mode and stopped on the first error or failure.\n\n## Notes\n - Please note that all unstaged files will be stashed once you ran the hooks.\n - Be careful using different linters / formetters at the same time (like `black` and `flake8`). They may have different conflicts so in order to use them together you should solve them first.\n\n## Additional info\nFind more about pre-commit hooks [here](https://pre-commit.com/).\n\n## Happy coding!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjetbridge%2Fpre-commit-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjetbridge%2Fpre-commit-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjetbridge%2Fpre-commit-hooks/lists"}