{"id":20043935,"url":"https://github.com/sameeramin/pre-commit-demo","last_synced_at":"2025-07-25T21:33:41.154Z","repository":{"id":132715542,"uuid":"593498433","full_name":"sameeramin/pre-commit-demo","owner":"sameeramin","description":"A demo project for pre-commit workshop","archived":false,"fork":false,"pushed_at":"2023-07-17T06:11:55.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T07:29:14.471Z","etag":null,"topics":[],"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/sameeramin.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-01-26T06:23:46.000Z","updated_at":"2023-07-17T06:03:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"9785304e-8a25-4d5e-8f55-e1b916f9bdba","html_url":"https://github.com/sameeramin/pre-commit-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sameeramin/pre-commit-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameeramin%2Fpre-commit-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameeramin%2Fpre-commit-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameeramin%2Fpre-commit-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameeramin%2Fpre-commit-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sameeramin","download_url":"https://codeload.github.com/sameeramin/pre-commit-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameeramin%2Fpre-commit-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267065407,"owners_count":24030376,"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-07-25T02:00:09.625Z","response_time":70,"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-13T10:58:36.170Z","updated_at":"2025-07-25T21:33:41.102Z","avatar_url":"https://github.com/sameeramin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pre-commit-demo\nThis is a demo repository that demonstrates how to integrate pre-commit in a project consisting of various files including text, yaml, python, javascript, css, and html.\n\n## Prerequisites\n- [pre-commit](https://pre-commit.com/)\n- [Git](https://git-scm.com/)\n\n## Setup\n\n1. Clone the repository: \n```\ngit clone https://github.com/sameeramin/pre-commit-demo.git\n```\n2. Install pre-commit: \n```\nbrew install pre-commit\n```\nOr\n```\npip install pre-commit\n```\nOr if you're using `anaconda` or `miniconda`\n```\nconda install pre-commit\n```\n3. Run `pre-commit install` to install the git hook\n\n4. Make your changes and commit. You will see pre-commit running the hooks automatically. If you want to run it on existing files run \n```\npre-commit run --all-files  \n```\n\n## Available Hooks\n- `check-yaml`: checks yaml file for proper formatting\n- `end-of-file-fixer`: checks for newline at end of files\n- `trailing-whitespace`: checks for whitespaces at the end of lines\n- `black`: auto-formats python code to conform to PEP8 style\n- `flake8`: checks for code style and errors\n\nYou can add more hooks as per your project requirements. Here's the [list](https://pre-commit.com/hooks.html) of all supported hooks and you can also create your own hooks as well!\n\n## Note\nMake sure you have all the necessary dependencies installed before running the pre-commit hooks\n\nYou can add or remove hooks in the `.pre-commit-config.yaml` file\n\n## Support\nIf you have any issues or questions, please open an issue on the repository and I'll be happy to help. If this guide helped you, please consider staring this repository 😂\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsameeramin%2Fpre-commit-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsameeramin%2Fpre-commit-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsameeramin%2Fpre-commit-demo/lists"}