{"id":15571482,"url":"https://github.com/hatamiarash7/pre-commit","last_synced_at":"2026-04-29T18:33:57.204Z","repository":{"id":73239746,"uuid":"491387687","full_name":"hatamiarash7/pre-commit","owner":"hatamiarash7","description":"My pre commit hooks","archived":false,"fork":false,"pushed_at":"2024-04-01T17:59:45.000Z","size":25,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T06:31:22.171Z","etag":null,"topics":["commit","git","pre-commit","pre-commit-hook","pre-commit-hooks"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/hatamiarash7.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":"2022-05-12T06:16:00.000Z","updated_at":"2022-05-12T06:17:47.000Z","dependencies_parsed_at":"2024-10-02T18:10:44.817Z","dependency_job_id":null,"html_url":"https://github.com/hatamiarash7/pre-commit","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/hatamiarash7/pre-commit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatamiarash7%2Fpre-commit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatamiarash7%2Fpre-commit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatamiarash7%2Fpre-commit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatamiarash7%2Fpre-commit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hatamiarash7","download_url":"https://codeload.github.com/hatamiarash7/pre-commit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatamiarash7%2Fpre-commit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32439199,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T18:12:22.909Z","status":"ssl_error","status_checked_at":"2026-04-29T18:11:33.322Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["commit","git","pre-commit","pre-commit-hook","pre-commit-hooks"],"created_at":"2024-10-02T18:00:38.371Z","updated_at":"2026-04-29T18:33:57.167Z","avatar_url":"https://github.com/hatamiarash7.png","language":"Shell","funding_links":["https://ko-fi.com/D1D1WGU9"],"categories":[],"sub_categories":[],"readme":"# Pre Commit\n\nMy pre-commit hooks. You can use these hooks for easier development.\n\n## Configuration\n\nRun all checks:\n\n```yaml\nrepos:\n    - repo: https://github.com/hatamiarash7/pre-commit\n      rev: v1.0.3\n      hooks:\n          - id: ansible_find_unused_variable\n          - id: ansible_find_empty_files\n          - id: ansible_find_empty_directories\n          - id: ansible_fix_readability\n          - id: ansible_find_undefined_handlers\n          - id: ansible_find_unquoted_values\n```\n\n## Hooks\n\nWe have these hooks for now. more items will be added gradually.\n\n### Ansible - Find unused variables\n\nThis hook can help you find defined variables ( in `defaults/main.yml` or `vars/main.yml` ) that are not used in the role.\n\n```yaml\nrepos:\n    - repo: https://github.com/hatamiarash7/pre-commit\n      rev: v1.0.0\n      hooks:\n          - id: ansible_find_unused_variable\n```\n\n### Ansible - Find empty files\n\nThis hook can find empty `defaults/main.yml`, `handlers/main.yml` and `vars/main.yml` files.\n\n```yaml\nrepos:\n    - repo: https://github.com/hatamiarash7/pre-commit\n      rev: v1.0.0\n      hooks:\n          - id: ansible_find_empty_files\n```\n\n### Ansible - Find empty directories\n\nThis hook can find empty directories.\n\n```yaml\nrepos:\n    - repo: https://github.com/hatamiarash7/pre-commit\n      rev: v1.0.0\n      hooks:\n          - id: ansible_find_empty_directory\n```\n\n### Ansible - Fix Readability\n\nThis hook can improve readability.\n\n```yaml\nrepos:\n    - repo: https://github.com/hatamiarash7/pre-commit\n      rev: v1.0.0\n      hooks:\n          - id: ansible_fix_readability\n```\n\n### Ansible - Find undefined handler\n\nThis hook can find undefined handlers.\n\n```yaml\nrepos:\n    - repo: https://github.com/hatamiarash7/pre-commit\n      rev: v1.0.0\n      hooks:\n          - id: ansible_find_undefined_handlers\n```\n\n### Ansible - Find unquoted values\n\nThis hook can find unquoted values.\n\n```yaml\nrepos:\n    - repo: https://github.com/hatamiarash7/pre-commit\n      rev: v1.0.0\n      hooks:\n          - id: ansible_find_unquoted_values\n```\n\n## Known Problems\n\nIn some cases, you may need change permissions for cloned repository to run checks. For example you have this error :\n\n```lang-none\nExecutable `/home/username/.cache/pre-commit/\u003ctemp name\u003e/scripts/ansible_find_undefined_handlers.sh` is not executable\n\nFind unquoted values that look like a version............................Failed\n- hook id: ansible_find_unquoted_values\n- exit code: 1\n```\n\nYou can fix this problems easily :\n\n```bash\nchmod ug+x /home/username/.cache/pre-commit/\u003ctemp name\u003e/scripts/*\n```\n\n---\n\n## Support\n\n[![Donate with Bitcoin](https://en.cryptobadges.io/badge/micro/bc1qmmh6vt366yzjt3grjxjjqynrrxs3frun8gnxrz)](https://en.cryptobadges.io/donate/bc1qmmh6vt366yzjt3grjxjjqynrrxs3frun8gnxrz) [![Donate with Ethereum](https://en.cryptobadges.io/badge/micro/0x0831bD72Ea8904B38Be9D6185Da2f930d6078094)](https://en.cryptobadges.io/donate/0x0831bD72Ea8904B38Be9D6185Da2f930d6078094)\n\n[![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/D1D1WGU9)\n\n\u003cdiv\u003e\u003ca href=\"https://payping.ir/@hatamiarash7\"\u003e\u003cimg src=\"https://cdn.payping.ir/statics/Payping-logo/Trust/blue.svg\" height=\"128\" width=\"128\"\u003e\u003c/a\u003e\u003c/div\u003e\n\n## Contributing\n\nDon't be shy to be a contributor 😉\n\n1. Fork it !\n2. Create your feature branch : `git checkout -b my-new-feature`\n3. Commit your changes : `git commit -am 'Add some feature'`\n4. Push to the branch : `git push origin my-new-feature`\n5. Submit a pull request\n\n## Issues\n\nEach project may have many problems. Contributing to the better development of this project by reporting them.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhatamiarash7%2Fpre-commit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhatamiarash7%2Fpre-commit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhatamiarash7%2Fpre-commit/lists"}