{"id":21024360,"url":"https://github.com/hukenovs/pre_commit_hooks","last_synced_at":"2026-05-18T09:38:14.030Z","repository":{"id":90538168,"uuid":"254485320","full_name":"hukenovs/pre_commit_hooks","owner":"hukenovs","description":"Simple Python project for testing pre-commit hooks","archived":false,"fork":false,"pushed_at":"2020-04-10T21:56:12.000Z","size":21,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-20T13:44:26.142Z","etag":null,"topics":["ci","ci-cd","developer-tools","git-commit","pre-commit","pre-commit-hook","pre-commit-hooks","python","yaml-configuration"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hukenovs.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":"2020-04-09T21:48:02.000Z","updated_at":"2022-08-19T13:30:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"b71415a4-84be-4ec6-bed1-d560d6a3c20d","html_url":"https://github.com/hukenovs/pre_commit_hooks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hukenovs%2Fpre_commit_hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hukenovs%2Fpre_commit_hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hukenovs%2Fpre_commit_hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hukenovs%2Fpre_commit_hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hukenovs","download_url":"https://codeload.github.com/hukenovs/pre_commit_hooks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243456650,"owners_count":20293907,"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":["ci","ci-cd","developer-tools","git-commit","pre-commit","pre-commit-hook","pre-commit-hooks","python","yaml-configuration"],"created_at":"2024-11-19T11:25:27.862Z","updated_at":"2026-05-18T09:38:09.002Z","avatar_url":"https://github.com/hukenovs.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple project for testing pre-commit hooks\n\nUseful python project for testing pre-commit hooks.\nDon't forget to add `.pre-commit-config.yaml` to the top of source code directory.\n\nLicense: GNU GPL 3.0.\n\n## Info:\n\n| **Title**         | Pre-commit hooks |\n| -- | -- |\n| **Author**        | Alexander Kapitanov     |\n| **Project lang**  | Python                  |\n| **Libraries**     | Numpy, Matplotlib       |\n| **First Release** | 10 Apr 2020             |\n\n## Description\n\nUse the following steps for testing some pre-commit hooks:\n\n**Example 1**:\n- Save `src/example.sh` file\n- Go to the source directory\n- Execute: `chmod +x example.sh`\n- Enjoy!\n\n**Example 2**:\n- Clone this repo\n- Go to the source directory\n- Execute the next commands\n```bash\n# Step 1: Create virtual env\nvirtualenv venv\nsource venv/bin/activate\n\n# Step 2: Install dependences\npip install -r requirements.txt\nwait\n\n# Step 3: Apply pre-commit hooks\npre-commit install\npre-commit run --all-files\n```\n- Enjoy!\n\nAlso you can change any part of source code (e.g. break the rules of *PEP8* into the *main.py* file) and re-run hooks with the following command: `pre-commit run -a`\n\nFor more information about **pre-commit hooks** go to the [next link](https://pre-commit.com/ \"Pre-commit hooks\").\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhukenovs%2Fpre_commit_hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhukenovs%2Fpre_commit_hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhukenovs%2Fpre_commit_hooks/lists"}